(2019-09-26, 14:34)zaidrockso Wrote: [ -> ] (2019-09-26, 14:09)mardukL Wrote: [ -> ] (2019-09-26, 11:32)zaidrockso Wrote: [ -> ]That's what i did, just doesn't do anything, did another streamable
and yes i pressed enter when it asks to press a key, when i press enter it shuts down.
https://streamable.com/9ds7a
can you run it again on another path/location other than userdata folders like 'desktop'
e.g
create folder on your hdd/ssd
c:/data/musicvideofiles/
Tried it, no avail, Tried it on hdd on my pc 3 folders in, tried it on usb stick, tried it on another computer, no luck
Really afraid i copied it incorrectly, but i copied it like 5 times, not sure why it's not executing properly for me.
Oh, man.
I am So Sorry.
i saw to late that, the code which i pasted, did get some reformatting.
because batch contains a link to kodi wiki.
try that instead ->
@echo off
REM Windows Title
TITLE NFO creator Musicvideos
COLOR B
ECHO -------------------------------------------------------------------------
ECHO Create NFO for Musicvideos, all existing will be overwritten
ECHO Push key to Start
ECHO -------------------------------------------------------------------------
ECHO.
PAUSE > NUL
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^>
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 ^ ^<rating^>^0.000000^</rating^>
echo ^ ^<userrating^>^8^</userrating^>
echo ^ ^<epbookmark^>^0.000000^</epbookmark^>
echo ^ ^<year^>^</year^>
echo ^ ^<track^>^-1^</track^>
echo ^ ^<album^>^</album^>
for %%b in ("%%~na") do echo ^ ^<artist^>%%~b^</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
(2019-09-26, 21:37)mardukL Wrote: [ -> ] (2019-09-26, 14:34)zaidrockso Wrote: [ -> ] (2019-09-26, 14:09)mardukL Wrote: [ -> ]can you run it again on another path/location other than userdata folders like 'desktop'
e.g
create folder on your hdd/ssd
c:/data/musicvideofiles/
Tried it, no avail, Tried it on hdd on my pc 3 folders in, tried it on usb stick, tried it on another computer, no luck
Really afraid i copied it incorrectly, but i copied it like 5 times, not sure why it's not executing properly for me.
Oh, man.
I am So Sorry.
i saw to late that, the code which i pasted, did get some reformatting.
because batch contains a link to kodi wiki.
try that instead ->
@echo off
REM Windows Title
TITLE NFO creator Musicvideos
COLOR B
ECHO -------------------------------------------------------------------------
ECHO Create NFO for Musicvideos, all existing will be overwritten
ECHO Push key to Start
ECHO -------------------------------------------------------------------------
ECHO.
PAUSE > NUL
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^>
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 ^ ^<rating^>^0.000000^</rating^>
echo ^ ^<userrating^>^8^</userrating^>
echo ^ ^<epbookmark^>^0.000000^</epbookmark^>
echo ^ ^<year^>^</year^>
echo ^ ^<track^>^-1^</track^>
echo ^ ^<album^>^</album^>
for %%b in ("%%~na") do echo ^ ^<artist^>%%~b^</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
This has worked to a certain degree! Woo! But i'm left with a similar problem to my first one. Russian is not output correctly, for example " музыка " becomes "


? " on notepad. The English videos worked perfectly though , I think the encoding needs to be changed, sadly i don't know how to do that

Is this a quick fix?
Edit : Did some googling since you have done more than enough and figured it out after some hours!
i added the line
chcp 65001 >NUL
now the russian letters are encoded properly, thank you so much!
You can also use notepad++ to change the character encoding easily from the menu
(2019-09-27, 01:05)zaidrockso Wrote: [ -> ] (2019-09-26, 21:37)mardukL Wrote: [ -> ] (2019-09-26, 14:34)zaidrockso Wrote: [ -> ]Tried it, no avail, Tried it on hdd on my pc 3 folders in, tried it on usb stick, tried it on another computer, no luck
Really afraid i copied it incorrectly, but i copied it like 5 times, not sure why it's not executing properly for me.
Oh, man.
I am So Sorry.
i saw to late that, the code which i pasted, did get some reformatting.
because batch contains a link to kodi wiki.
try that instead ->
@echo off
REM Windows Title
TITLE NFO creator Musicvideos
COLOR B
ECHO -------------------------------------------------------------------------
ECHO Create NFO for Musicvideos, all existing will be overwritten
ECHO Push key to Start
ECHO -------------------------------------------------------------------------
ECHO.
PAUSE > NUL
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^>
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 ^ ^<rating^>^0.000000^</rating^>
echo ^ ^<userrating^>^8^</userrating^>
echo ^ ^<epbookmark^>^0.000000^</epbookmark^>
echo ^ ^<year^>^</year^>
echo ^ ^<track^>^-1^</track^>
echo ^ ^<album^>^</album^>
for %%b in ("%%~na") do echo ^ ^<artist^>%%~b^</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
This has worked to a certain degree! Woo! But i'm left with a similar problem to my first one. Russian is not output correctly, for example " музыка " becomes " 
? " on notepad. The English videos worked perfectly though , I think the encoding needs to be changed, sadly i don't know how to do that
Is this a quick fix?
Edit : Did some googling since you have done more than enough and figured it out after some hours!
i added the line
chcp 65001 >NUL
now the russian letters are encoded properly, thank you so much!
Great you find a solution.
keep in mind artist and title is not splitted.
i couln't find a solution to split folder or file names by delimeter ' - ' and echo the result, which result in getting an artist (named : artist - title ) for each song.
Hi ,i finished musicvideo nfo creator batch.
- creates nfo recursive for each musicvideo, it'll dont overwrite existing ones
- just writes "simple" artist and title tags
NOTE: '
&' isnt supported here in folder and filename.
you should have folderstructure, where file has same title as folder
e.g.
musicvideos/artist - title/artist - title.ext
place and run from root folder (musicvideos)
@echo off & setlocal
title %~dp0
color b
echo -------------------------------------------------------------------------
echo create nfo for musicvideos if missing
echo BETTER DO A SCRAPE AND EXPORT NFO BEFORE RUN THIS SCRIPT
echo be sure you dont use any special characters like ^& in filename and foldername
rem cant use parentheses in code because parentheses in string will causing unwished behaviour, escapeing them in for nfo tags will write enclosing chars
rem i dont like ren before
echo push key to start
echo -------------------------------------------------------------------------
echo.
pause > nul
for /r %%a in (*.mkv *.avi *.mp4) do call
ubroutine_check "%%~na"
echo.
echo creatin is done
echo scroll up to chcek for errors. push key to exit
echo push key to exit
echo.
pause > nul
goto :eof
ubroutine_check
set "filenamenoextension=%~1"
set "filepath=%~dp0%filenamenoextension%\%filenamenoextension%"
set "artist=%filenamenoextension: - =" & set "title=%"
echo.
if exist "%filepath%.nfo" echo %~1.nfo already exist - check next
if exist "%filepath%.nfo" goto :eof
if not exist "%filepath%.nfo" echo %~1.nfo is created now
if not exist "%filepath%.nfo" goto :createnfo
:createnfo
type nul >"%filepath%.nfo"
echo ^<?xml version="1.0" encoding="UTF-8" standalone="yes"?^> > "%filepath%.nfo"
echo ^<musicvideo^>>> "%filepath%.nfo"
echo ^<title^>%title%^</title^>>> "%filepath%.nfo"
echo ^<rating^>^8.000000^</rating^>>> "%filepath%.nfo"
echo ^<userrating^>^8^</userrating^>>> "%filepath%.nfo"
echo ^<year^>^</year^>>> "%filepath%.nfo"
echo ^<track^>^-1^</track^>>> "%filepath%.nfo"
echo ^<album^>^</album^>>> "%filepath%.nfo"
echo ^<plot^>^</plot^>>> "%filepath%.nfo"
echo ^<genre^>^</genre^>>> "%filepath%.nfo"
echo ^<director^>^</director^>>> "%filepath%.nfo"
echo ^<premiered^>^</premiered^>>> "%filepath%.nfo"
echo ^<year^>^</year^>>> "%filepath%.nfo"
echo ^<studio^>^</studio^>>> "%filepath%.nfo"
echo ^<artist^>%artist%^</artist^>>> "%filepath%.nfo"
echo ^</musicvideo^>>> "%filepath%.nfo"
goto :eof
edit:
you need set " : s " without space
before
ubroutine_check
flag the code here with syntax removed it.
this is how it should look
https://github.com/marduklev/repository....deo_nc.bat