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
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 https://kodi.wiki/view/NFO_files/Music_videos --^>
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

Skins |  Titan M O D   •   S W A N (WIP)
Reply


Messages In This Thread
Question: Prefer Online Lookup and use NFO as Fallback to Scrape MusicVideos - by mardukL - 2019-08-13, 16:29
Logout Mark Read Team Forum Stats Members Help
Question: Prefer Online Lookup and use NFO as Fallback to Scrape MusicVideos0