Question: Prefer Online Lookup and use NFO as Fallback to Scrape MusicVideos
#1
Hi, im unsure if possible within 'advancedsettings.xml' with some other setting.

I like to prefer an Online Lookup for Musicvideos and use NFO lookup just as a fallback.
Actual its vise versa.

A lot of my Musicvideos arent 'exist' on theaudiodb, and will missing after scrape.

IS IT POSSIBLE TO USE ONLINE LOOKUP FIRST AND IF AN ITEM/FOLDER LOOKUP FAILED ONLINE THAN LOOKUP .NFO ?

Lookup for the 'missing items' and create nfo without using batch is very time expensive.



So i created a batch (windows) which creates .nfo files (recursively for all items) for my music videos, but scrapper  prefer nfo instead of online lookup, which result in having to less info for items which can be scraped online

Create NFO Batch

@echo off
REM Windows Title
TITLE NFO creator Musicvideos
REM Farbschema
COLOR B
REM Start Header Es wird der Text "**" ausgegeben und gewartet bis der Benutzer eine Taste drueckt
ECHO -------------------------------------------------------------------------
ECHO  Create NFO for Musicvideos, all existing will be overwritten
ECHO  Push key to Start
ECHO -------------------------------------------------------------------------
ECHO.
PAUSE > NUL
REM Ende Header
for /r %%a in (*.mkv *.avi *.mp4) do (
(
echo ^<?xml version="1.0" encoding="UTF-8" standalone="yes"?^>
echo ^<musicvideo^>
for %%b in ("%%~na") do echo ^    ^<title^>%%~b^</title^>
echo ^    ^<^!-- start test set attributes --^>
for %%b in ("%%~na") do echo ^    ^<path^>%~dp0^</path^>
for %%b in ("%%~na") do echo ^    ^<name^>%%~na^</name^>
for %%b in ("%%~na") do echo ^    ^<filenameandpath^>%%~a^</filenameandpath^>
echo ^    ^<filenameandpath2^>%%~na^</filenameandpath2^>
for %%b in ("%%~na") do echo ^    ^<basepath^>%%~a^</basepath^>
for %%b in ("%%~na") do echo ^    ^<before^>^</before^>
REM for "tokens=1,2 delims= - " %%b  in ("%%~na") do (
REM echo ^    ^<before^>^%%a</before^>
REM echo ^    ^<after^>^%%b</after^>
REM )
echo ^    ^<^!-- end test NFO_files/Music_videos (wiki) --^>
REM test end
echo ^    ^<rating^>^0.000000^</rating^>
echo ^    ^<userrating^>^8^</userrating^>
echo ^    ^<epbookmark^>^0.000000^</epbookmark^>
echo ^    ^<year^>^</year^>
echo ^    ^<track^>^-1^</track^>
echo ^    ^<album^>^</album^>
echo ^    ^<artist^>^</artist^>
echo ^    ^<genre^>^</genre^>
echo ^    ^<outline^>^</outline^>
echo ^    ^<plot^>^</plot^>
echo ^    ^<tagline^>^</tagline^>
echo ^    ^<thumb^>^</thumb^>
echo ^    ^<status^>^</status^>
echo ^    ^<studio^>^</studio^>
echo ^    ^<art^>
echo ^        ^<fanart^>%~dp0^%%~na^-fanart.jpg^</fanart^>
echo ^        ^<poster^>%~dp0^%%~na^-poster.jpg^</poster^>
echo ^        ^<artistthumb^>%~dp0^%%~na^-artistthumb.jpg^</artistthumb^>
echo ^        ^<banner^>%~dp0^%%~na^-banner.jpg^</banner^>
echo ^        ^<clearlogo^>%~dp0^%%~na^-clearlogo.png^</clearlogo^>
echo ^        ^<discart^>%~dp0^%%~na^-discart.png^</discart^>
echo ^        ^<landscape^>%~dp0^%%~na^-landscape.jpg^</landscape^>
echo ^    ^</art^>
echo ^</musicvideo^>
)>"%%~dpna.nfo"
)
ECHO.
ECHO Creatin is done
ECHO Push key to exit
ECHO.
PAUSE > NUL

Reply
#2
I don't think there is a way to use nfo files as a "fallback".  You probably have to scrape all your MVs first, then create nfos just for items that  didn't scrape.

It might be possible to tag your MVs (at least if they are mp4) and turn on tag reading for video.  I'm not sure if tagged MVs will also allow for scraping (never tested myself) but I think they will.  In that case you get what you tag + the sraped results.

scott s.
.
maintainer of skin  Aeon MQ5 mods for post-Gotham Kodi releases:
Krypton
Leia
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Question: Prefer Online Lookup and use NFO as Fallback to Scrape MusicVideos00