-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBig-5-med-Nils-og-Harald.bat
23 lines (22 loc) · 1.16 KB
/
Big-5-med-Nils-og-Harald.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
chcp 65001
for /f "tokens=2 delims==" %%G in ('wmic os get localdatetime /value') do set datetime=%%G
set year2=%datetime:~2,2%
set year4=%datetime:~0,4%
set month=%datetime:~4,2%
set day=%datetime:~6,2%
set name=%year4%-%month%-%day%
pushd E:\Repo\Podme
echo.>> Big-5-med-Nils-og-Harald.m3u
echo|set /p="#EXTINF: -1 , %year2%-%month%-%day% - %~2" >> Big-5-med-Nils-og-Harald.m3u
echo.>> Big-5-med-Nils-og-Harald.m3u
echo|set /p="%~1" >> Big-5-med-Nils-og-Harald.m3u
pause
REM call _Podme_M3U_Update.bat
yt-dlp --concurrent-fragments 8 --no-overwrites %1 --exec r128gain -o "%TEMP%\%name%.m4a"
neroAacTag "%TEMP%\%name%.m4a" -meta:title="%~2" -meta:artist="Nils Brenna og Harald Eia" -meta:year="%year4%" -meta:album="Big 5 med Nils og Harald" -meta:genre="Podcast" -meta:comment="Harald Eia og Nils Brenna bruker personlighetstesten Big 5 for analysere kjente personer." -add-cover:front:Big-5-med-Nils-og-Harald.jpg
REM RoboCopy.exe "%TEMP%" "F:\Podcast_Archive\PodMe\Big 5 med Nils og Harald" %name%.m4a /MT:8 /COPY:DT
RoboCopy.exe "%TEMP%" "E:\Podcasts\Downloads\Big 5 med Nils og Harald" %name%.m4a /MOV /MT:8 /COPY:DT
echo [%year2%-%month%-%day%](%~1) ^| %~2
popd
call;