Advertisement
WannaGet

GETPaP

Aug 11th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 60.24 KB | None | 0 0
  1. ::(z): removes 2days old partial downloads in "C:\downloads\media".
  2. ::(y): DONE [::TO DO  : Forced downloading should set history on as you only need force a previously downloaded program.]
  3. ::(x): checks version string in bat "C:\Program Files Portable\get_iplayer\GET-IPLAYER - x86+64.bat". Offers to overwrite if different.
  4. ::(w): remove empty subfolders in Get-Iplayer folder on desktop & "C:\downloads\media"
  5. ::(v): removed some issue here. No issues.
  6. ::(u): skip catagory as this no longer works.
  7. ::(t): installation adds shortcut to 'GET-IPLAYER - x86+64.bat' on desktop with icon & maximised window. Adds the choice to add too.
  8. ::(s): added %hide% to download string. Now only matches not in recording history will attempt to download by default.
  9. ::(r): added --whitespace to download string. Underscores on downloaded files now replaced by spaces.
  10. ::(q): history off by default
  11. ::(p): remove empty Get-Iplayer folder on desktop.
  12. ::(o): using forced downloading when a download fails saves your choices & skips questions. For example; what you wanna watch, download folder etc.
  13. ::(P): history can be switched on & off.
  14. ::(n): reverted (m). MOVE failed when destination folder exists.
  15. ::(m): reverted mistake. Using MOVE to usb (R:\) as it failed. Only use MOVE to desktop.
  16. ::(l): Resize window to 50 lines when downloading only (if NOT "!dip!"=="--fields=pid"). Leaves window large for matching PID downloads.
  17. ::(k): set more lines when %Pap% not empty, as some programs have many results.
  18. ::(j): use MOVE instead of Robocopy when downloading to desktop.
  19. ::(i): trimmed some bits around deleting partial downloads before & after streaming.
  20. ::(h): remove '&' when choosing catagory with if NOT "!tttt!"=="" set tttt=%tttt:&=%
  21. ::(g): removed two echo commands left in by mistake.
  22. ::(f): fixed blank entry at start not working using: if NOT "!Pap!"=="" set Pap=%Pap:"=%
  23. ::(e): fixed download folder input not working at start using: set Pap=%Pap:"=%
  24. ::(d): trim leading & trailing whitespace from all user input using CALL to subroutine.
  25. ::(c): trim leading & trailing whitespace from user input at start (Pap) & download (earh).
  26. ::(b): wrap quotes around earh if words only. Eg. No quotes for PID or NUMBERS. Avoids downloading all programs matching each word. Only the string of words is matched & downloaded.
  27. ::(a): set lines to 9999 for full list search.
  28. ::TO DO  : set window size according to resolution.
  29. ::TO DO  : checks ffmepg.exe process - if running skips rtmpdump.exe process check. Caused issues when tried.
  30. ::TO DO  : checks rtmpdump.exe process & waits to download.
  31. ::TO DO  : Fix failure [unexpected truth at this time] when forced re-downloading of multiple worded title after a failed download. PID's & codes work.
  32. ::TO DO  : Add PVR commands. Unfinished/barely started. Ideally set pvr & create task in task scheduler. Perhaps ask user when task to be run & be able to change time run & delete task etc.
  33. ::TO DO  : if more than one instance of get-iplayer.bat running check rtmpdump process, if running wait to stream. therefore programs could be queued.
  34. ::TO DO  : Maybe use config file to set default settings or use start of [GET-IPLAYER - x86+64.bat] so an extra file not needed.
  35. ::TO DO  : Use of PID codes from the start.
  36. ::TO DO  : Deal with ampersands inputted.
  37. ::TO DO  : Add option to open text file of tv, radio or podcast cache when searching full list - Maybe use list to search results
  38. ::TO DO  : Add question: if destination folder (R:/Video) not exist ask for path of folder then check answered folder if exist set the variable to answer. Else repeat.
  39. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  40. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  41. :::::::::::::::::::======================================================::::::::::::::::::::::::::
  42. :::::::::::::::::::                                                      ::::::::::::::::::::::::::
  43. :::::::::::::::::::    This Batch File Is To Be Used With Get-IPlayer    ::::::::::::::::::::::::::
  44. :::::::::::::::::::                                                      ::::::::::::::::::::::::::
  45. :::::::::::::::::::Get-IPlayer Downloads Streams From The IPlayer Website::::::::::::::::::::::::::
  46. :::::::::::::::::::                                                      ::::::::::::::::::::::::::
  47. :::::::::::::::::::======================================================::::::::::::::::::::::::::
  48. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  49. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  50. @echo off
  51. setlocal enabledelayedexpansion
  52. ::(x):S
  53. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::batup
  54. ::::::::::::Overwrite "C:\Program Files Portable\get_iplayer\GET-IPLAYER - x86+64.bat":::::::::::::
  55. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  56. if not exist "C:\Program Files Portable\get_iplayer\GET-IPLAYER - x86+64.bat" goto :noneed
  57. findstr /m "04Pz" "C:\Program Files Portable\get_iplayer\GET-IPLAYER - x86+64.bat">nul
  58. if %errorlevel%==0 goto :noneed
  59. :batup
  60. echo.&echo.&echo.
  61. set batup=
  62. set /p batup=: Would You Like To Update The GET-IPLAYER - x86+64.bat Y or N?
  63. set whitespace=%batup%
  64. setlocal enabledelayedexpansion
  65. call :whitespac
  66. set batup=%whitespace%
  67. if /i "%batup%"=="" GOTO :batup
  68. if /i "%batup:~0,1%"=="Y" xcopy /y "GET-IPLAYER - x86+64.bat" "C:\Program Files Portable\get_iplayer\GET-IPLAYER - x86+64.bat"
  69. if /i "%batup:~0,1%"=="N" OK
  70. echo.&echo.&echo.
  71. set batup=
  72. :noneed
  73. ::(x):E
  74. echo.&echo.&echo Please Wait..
  75. set type=TV
  76. set hide=--hide
  77. ::(z):S
  78. forfiles -p "C:\downloads\media" -s -m *.partial.mp4* /D -2 /C "cmd /c del @path"
  79. if errorlevel 1 echo removed old partial downloads
  80. ::(z):E
  81. ::(w):S
  82. pushd "%userprofile%\Desktop\Get-IPlayer" & for /f "usebackq delims=" %%d in (`"dir /ad/b/s | sort /R"`) do rd "%%d" >NUL 2>NUL
  83. pushd "C:\downloads\media" & for /f "usebackq delims=" %%d in (`"dir /ad/b/s | sort /R"`) do rd "%%d" >NUL 2>NUL
  84. pushd "%~dp0"
  85. ::(w):E
  86. @IF EXIST "%userprofile%\desktop\iPlayer Recordings" for /F %%N in ('dir /S/B "%userprofile%\Desktop\iPlayer Recordings" ^| find /V /C "::"') do (if %%N EQU 0 rd "%userprofile%\Desktop\iPlayer Recordings")
  87. @IF EXIST "%userprofile%\desktop\Get-IPlayer" for /F %%N in ('dir /S/B "%userprofile%\Desktop\Get-IPlayer" ^| find /V /C "::"') do (if %%N EQU 0 rd "%userprofile%\Desktop\Get-IPlayer")
  88. COLOR 0e
  89. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  90. :::::::::::::::::::::::::::::::::Determine Whether 32bit or 64bit::::::::::::::::::::::::::::::::::
  91. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  92. if exist "C:\Program Files (x86)" SET TBIT= (x86)
  93. :startA
  94. if not exist "C:\Program Files%TBIT%\get_iplayer\Uninst.exe" mode con cols=140&mode con lines=60&goto :DOWNLOADGET
  95. if exist "R:\GET-IPLAYER.txt" ATTRIB +H "R:\GET-IPLAYER.txt"
  96. :raddypodcst
  97. if not "%TBIT%"==" (x86)" goto :start
  98. echo.&echo.&echo.
  99. @Echo                              %DATE%
  100. if "%TBIT%"==" (x86)" goto :skipp
  101. GOTO :DOWNLOADGET
  102. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::START
  103. :START
  104. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  105. title Get-iPlayer
  106. mode con cols=140
  107. mode con lines=60
  108. COLOR 0E
  109. echo.|command /C date|find /i "current" >%temp%\dow.txt
  110. for /f "tokens=1-4 delims=/ " %%i in (%temp%\dow.txt) do set DOW=%%l
  111. echo.&echo.&echo.&echo                                            %TIME%&echo.
  112. IF "%DOW%" == "Sun" echo                                        %DATE% Sunday
  113. IF "%DOW%" == "Mon" echo                                         %DATE% Monday
  114. IF "%DOW%" == "Tue" echo                                        %DATE% Tuesday
  115. IF "%DOW%" == "Wed" echo                                       %DATE% Wednesday
  116. IF "%DOW%" == "Thu" echo                                       %DATE% Thursday
  117. IF "%DOW%" == "Fri" echo                                         %DATE% Friday
  118. IF "%DOW%" == "Sat" echo                                       %DATE% Saturday
  119.  
  120. GOTO :skippy
  121. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::skipp
  122. :skipp
  123. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  124. COLOR 0e
  125. mode con cols=140
  126. mode con lines=999
  127. echo.
  128. echo.
  129. echo.
  130.                             @Echo                              %DATE%
  131. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::skippy
  132. :skippy
  133. echo.&echo.&echo.
  134.                              echo  :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  135.     if "%forced%"=="--force" echo  :::::::::::::::::                     FORCED DOWNLOADING                     ::::::::::::::::::
  136.                              echo  :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  137.                              echo  :::::::::::::::::                                                            ::::::::::::::::::
  138.         if /i "%type%"=="tv" echo  :::::::04Pz::::::                       - TELEVISION -                       ::::::::::::::::::
  139.      if /i "%type%"=="RADIO" echo  :::::::::::::::::                          - RADIO -                         ::::::::::::::::::
  140.    if /i "%type%"=="PODCAST" echo  :::::::::::::::::                         - PODCAST -                        ::::::::::::::::::
  141.                              ECHO  :::::::::::::::::                                                            ::::::::::::::::::
  142.                              echo  :::::::::::::::::   Leave blank, press enter to view the full program list   ::::::::::::::::::
  143. if not "%forced%"=="--force" echo  :::::::::::::::::                                                            ::::::::::::::::::
  144.                              echo  :::::::::::::::::     Maximise the window                                    ::::::::::::::::::
  145.                              echo  :::::::::::::::::     Use the scrollbar/mouse wheel to navigate the list     ::::::::::::::::::
  146.      if /i "%proggy%"=="rad" echo  :::::::::::::::::                                                            ::::::::::::::::::
  147.      if /i "%proggy%"=="pod" echo  :::::::::::::::::                                                            ::::::::::::::::::
  148.     if /i NOT "%type%"=="tv" echo  :::::::::::::::::                         - WARNING -                        ::::::::::::::::::
  149.      if /i "%proggy%"=="rad" echo  :::::::::::::::::                                                            ::::::::::::::::::
  150.      if /i "%proggy%"=="pod" echo  :::::::::::::::::                                                            ::::::::::::::::::
  151.      if /i "%proggy%"=="rad" echo  :::::::::::::::::                 RADIO HAS OVER 3000 PROGRAMS               ::::::::::::::::::
  152.      if /i "%proggy%"=="pod" echo  :::::::::::::::::                THERE ARE OVER 17,000 PODCASTS              ::::::::::::::::::
  153.      if /i "%proggy%"=="rad" echo  :::::::::::::::::         LEAVING THE ANSWER BLANK WILL TAKE SOME TIME       ::::::::::::::::::
  154.      if /i "%proggy%"=="pod" echo  :::::::::::::::::           LEAVING THE ANSWER BLANK WILL TAKE AN AGE        ::::::::::::::::::
  155.      if /i "%proggy%"=="rad" echo  :::::::::::::::::           ALSO THE FULL LIST WILL NOT BE VIEWABLE          ::::::::::::::::::
  156.      if /i "%proggy%"=="pod" echo  :::::::::::::::::            ALSO THE FULL LIST WILL NOT BE VIEWABLE         ::::::::::::::::::
  157.      if /i "%proggy%"=="rad" echo  :::::::::::::::::              SEARCH A CHANNEL IN THE NEXT STEP             ::::::::::::::::::
  158.      if /i "%proggy%"=="pod" echo  :::::::::::::::::               SEARCH A CHANNEL IN THE NEXT STEP            ::::::::::::::::::
  159.                              echo  :::::::::::::::::                                                            ::::::::::::::::::
  160.                             echo  :::::::::::::::::--- --- --- --- --- --- ---^> OR ^<--- --- --- --- --- --- ---::::::::::::::::::
  161.                              echo  :::::::::::::::::                                                            ::::::::::::::::::
  162.                              echo  :::::::::::::::::  1.Enter the title, part of the title or url               ::::::::::::::::::
  163.                            if "%Pap%"=="R" SET thistype=Enter P to search podcasts                              ::::::::::::::::::
  164.                            if "%Pap%"=="P" SET thistype=Enter R to search radio content                         ::::::::::::::::::
  165.     if /i NOT "%type%"=="tv" echo  :::::::::::::::::  2.%thistype%
  166.     if /i NOT "%type%"=="tv" echo  :::::::::::::::::  3.Enter T to search tv                                    ::::::::::::::::::
  167.         if /i "%type%"=="tv" echo  :::::::::::::::::  2.Enter R to search radio                                 ::::::::::::::::::
  168.         if /i "%type%"=="tv" echo  :::::::::::::::::  3.Enter P to search podcasts                              ::::::::::::::::::
  169.              if "%Pap%"=="A" ECHO  :::::::::::::::::  4.Enter PVR to search ^& set pvr recordings                ::::::::::::::::::
  170.              if "%Pap%"=="A" echo  :::::::::::::::::____________________________________________________________::::::::::::::::::
  171.              if "%Pap%"=="A" echo  :::::::::::::::::                                                            ::::::::::::::::::
  172.              if "%Pap%"=="A" ECHO  :::::::::::::::::  5.uSWF to update the SWF url                              ::::::::::::::::::
  173.              if "%Pap%"=="A" ECHO  :::::::::::::::::  6.GetD downloads ^& installs the latest version            ::::::::::::::::::
  174.              if "%Pap%"=="A" echo  :::::::::::::::::  7.GetU updates Get-Iplayer ^(needs admin^)                  ::::::::::::::::::
  175.              if "%Pap%"=="A" echo  :::::::::::::::::  8.Drag folder or enter its path to set download location  ::::::::::::::::::
  176.              if "%Pap%"=="A" echo  :::::::::::::::::  9.GetS adds shortcut to desktop for this batch file       ::::::::::::::::::
  177.                              echo  :::::::::::::::::                                                            ::::::::::::::::::
  178.                              echo  :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  179.          if NOT "%Pap%"=="A" ECHO  :::::::::::::::::  4.Enter A for more options                                ::::::::::::::::::
  180.                              echo  :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  181.          if NOT "%Pap%"=="A" echo  :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  182. echo.&echo.&echo.
  183. if "!NewPlace:~1,2!"==":\" ECHO                  Download folder: !NewPlace!
  184. echo.&echo.
  185. if "%forced%"=="--force" set agi= again
  186. if NOT "%forced%"=="--force" set agi=
  187. if /i "%type%"=="tv" SET show=What you wanna watch%agi% on the bbc
  188. if /i "%type%"=="RADIO" SET wma=,wma&set show=Which radio program do you want to search%agi%
  189. if /i "%type%"=="PODCAST" SET show=Which podcast would you like to search%agi%
  190. set Pap=
  191. ECHO                 %show% %USERNAME%?
  192. ECHO.
  193. set /p Pap=:                 
  194. if NOT "!Pap!"=="" set Pap=%Pap:"=%
  195. set whitespace=%Pap%
  196. setlocal enabledelayedexpansion
  197. call :whitespac
  198. set Pap=%whitespace%
  199. goto :whitespaceGONE
  200. :::::::::::::::Remove leading & trailing whitespace:::::::::::::dS
  201. :whitespac
  202. for /f "tokens=* delims= " %%a in ("%whitespace%") do set whitespace=%%a
  203. for /l %%a in (1,1,40) do if "!whitespace:~-1!"==" " set whitespace=!whitespace:~0,-1!
  204. goto :eof
  205. :::::::::::::::Remove leading & trailing whitespace:::::::::::::dE
  206. :whitespaceGONE
  207. if "!Pap!"=="" mode con lines=9999 cols=201&TITLE Full List Search&goto :hghg
  208. ::if "!Pap!"=="piD" SET dip=--fields=pid&goto :raddypodcst
  209. if "!Pap:~0,4!"=="http" SET DPLACE=from url&SET http=!Pap!&GOTO :HTTPPn
  210. SET Pap=%Pap:"=%
  211. if "!Pap!"=="PVR" echo                      %Pap% IS UNFINISHED&timeout /T 9 >nul&goto :raddypodcst
  212. if "!Pap!"=="R" SET type=RADIO&SET proggy=rad&goto :raddypodcst
  213. if "!Pap!"=="P" SET type=PODCAST&SET proggy=pod&goto :raddypodcst
  214. if "!Pap!"=="T" SET type=TV&SET proggy=&goto :raddypodcst
  215. if "!Pap!"=="A" SET A=NIMDA&goto :raddypodcst
  216. if /i "!Pap!"=="UsWF" GOTO :UPDATEGETSWF
  217. if /i "!Pap!"=="GetU" GOTO :UPDATEGET
  218. if /i "!Pap!"=="GetD" GOTO :DOWNLOADGET
  219. if /i "!Pap!"=="GetS" GOTO :install
  220. if exist "!Pap!" (2>nul pushd "!Pap!" && (popd&SET "NewPlace=!Pap!"&SET "!Pap!= "&GOTO :raddypodcst) || SET "!Pap!= "&GOTO :raddypodcst) else TITLE Will search for "!Pap!"
  221. if /i "!NewPlace:~1,2!"==":\" goto :herelass
  222. goto :hghg
  223. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::HTTPPn
  224. :HTTPPn
  225. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::gatahtt
  226. :gatahtt
  227. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  228. @if not exist "R:\GET-IPLAYER.txt" GOTO :HTTPP
  229. @echo.&echo.
  230. set FPLACE=
  231. set /p FPLACE=:                 Do you want it on PC or USB?
  232. set whitespace=%FPLACE%
  233. setlocal enabledelayedexpansion
  234. call :whitespac
  235. set FPLACE=%whitespace%
  236. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  237. ::::::::::::::::Asks If You Want To Download To USB If R:/GET-IPLAYER.txt Exists::::::::::::::::::::
  238. ::::::::::::::::                                                                ::::::::::::::::::::
  239. ::::::::::::::::  Assign a USB drive the letter R and create a text file named  ::::::::::::::::::::
  240. ::::::::::::::::         GET-IPLAYER in the ROOT Folder For This To Work        ::::::::::::::::::::
  241. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  242. echo.
  243. cls
  244. echo.
  245. echo.
  246. if /i "%FPLACE%"=="" goto :gatahtt
  247. if /i "%FPLACE:~0,1%"=="p" SET FPLACE=pc&goto :HTTPP
  248. if /i "%FPLACE:~0,1%"=="u" SET FPLACE=usb&goto :HTTPP
  249. if /i not "%FPLACE:~0,1%"=="p" goto :gatahtt
  250. if /i not "%FPLACE:~0,1%"=="u" goto :gatahtt
  251. goto :HTTPP
  252. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::herelass
  253. :herelass
  254. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::hghg
  255. :hghg
  256. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  257. if /i NOT "!Pap!"=="" GOTO :excatB
  258. TITLE Full List Search - Search Channel?
  259. echo.&echo.&echo.
  260. set onlycha=
  261. set /p onlycha=:               Would You like to search a channel? Y/N
  262. set whitespace=%onlycha%
  263. setlocal enabledelayedexpansion
  264. call :whitespac
  265. set onlycha=%whitespace%
  266. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  267. ::::::::::::::::Leave The Above "What You Wanna Search" Blank & This Question Occurs:::::::::::::::
  268. ::::::::::::::::                                                                    :::::::::::::::
  269. ::::::::::::::::  Asks You if You Want To Search Just One Channel Then Lists Them   :::::::::::::::
  270. ::::::::::::::::                                                                    :::::::::::::::
  271. ::::::::::::::::           Leave Blank & Press Enter To Skip This Step              :::::::::::::::
  272. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  273. if /i NOT "%onlycha%"=="Y" goto :inCh
  274. C: & cd "\Program Files%TBIT%\get_iplayer\" & "%Windir%\system32\cmd.exe" /c get_iplayer --list=channel --type=%type%
  275. echo.&echo.&echo.
  276. set /p chch=:                    Which Channel?
  277. if /i "%chch%"=="" SET chch=
  278. set whitespace=%chch%
  279. setlocal enabledelayedexpansion
  280. call :whitespac
  281. set chch=%whitespace%
  282. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::inCh
  283. :inCh
  284. :::::::::::::::(u):::::::::::::::S
  285. goto :excatB
  286. :::::::::::::::(u):::::::::::::::E
  287. cls
  288. TITLE Full List Search - Include Catagory?
  289. echo.&echo.&echo.
  290. set onlycat=
  291. set /p onlycat=:               Would You like to search a catagory? Y/N
  292. set whitespace=%onlycat%
  293. setlocal enabledelayedexpansion
  294. call :whitespac
  295. set onlycat=%whitespace%
  296. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  297. ::::::::::::::::Leave The Above "What You Wanna Search" Blank & This Question Occurs:::::::::::::::
  298. ::::::::::::::::                                                                    :::::::::::::::
  299. ::::::::::::::::  Asks You if You Want To Search Just One Catagory Then Lists Them  :::::::::::::::
  300. ::::::::::::::::                                                                    :::::::::::::::
  301. ::::::::::::::::           Leave Blank & Press Enter To Skip This Step              :::::::::::::::
  302. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  303. if /i NOT "%onlycat%"=="Y" goto :excatC
  304. SET kkkk=--category
  305. C: & cd "\Program Files%TBIT%\get_iplayer\" & "%Windir%\system32\cmd.exe" /c get_iplayer --list=categories --type=%type%
  306. echo.&echo.&echo.
  307. set /p tttt=:                    Which Catagory?
  308. if NOT "!tttt!"=="" set tttt=%tttt:&=%
  309. set whitespace=%tttt%
  310. setlocal enabledelayedexpansion
  311. call :whitespac
  312. set tttt=%whitespace%
  313. if /i "%tttt%"=="" SET tttt=
  314. if /i "%tttt%"=="" SET nnnn=
  315. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::excatC
  316. :excatC
  317. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  318. cls
  319. TITLE Full List Search - Exclude Catagory?
  320. echo.&echo.&echo.
  321. if /i "!Pap!"=="" set /p excat=:                     Exclude Catagory From Listing? Y/N
  322. set whitespace=%excat%
  323. setlocal enabledelayedexpansion
  324. call :whitespac
  325. set excat=%whitespace%
  326. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  327. :::::::::::::Leave The Above "What You Wanna Search" Blank & This Question Occurs Too::::::::::::::
  328. :::::::::::::                                                                        ::::::::::::::
  329. :::::::::::::     Asks You if You Want To Exclude Just One Catagory From The List    ::::::::::::::
  330. :::::::::::::                                                                        ::::::::::::::
  331. :::::::::::::              Leave Blank & Press Enter To Skip This Step               ::::::::::::::
  332. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  333. if /i NOT "%excat%"=="Y" goto :excatB
  334. SET nnnn=--exclude-category
  335. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::excatBAB
  336. :excatBAB
  337. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  338. C: & cd "\Program Files%TBIT%\get_iplayer\" & "%Windir%\system32\cmd.exe" /c get_iplayer --list=categories --type=%type%
  339. echo.&echo.&echo.
  340. set /p excatchoice=:                     Which Catagory?
  341. if NOT "!excatchoice!"=="" set excatchoice=%excatchoice:&=%
  342. set whitespace=%excatchoice%
  343. setlocal enabledelayedexpansion
  344. call :whitespac
  345. set excatchoice=%whitespace%
  346. if /i "%excatchoice%"=="" SET excatchoice=
  347. if /i "%excatchoice%"=="" SET nnnn=
  348. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::excatB
  349. :excatB
  350. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  351. cls
  352. echo.
  353. echo.
  354. echo.
  355. TITLE Name Download Folder
  356. ::if /i "!Pap!"=="" goto :flchoice
  357. echo                      What Do You Want To Name The Download Folder?
  358. echo.
  359. set DPLACE=
  360. set /p DPLACE=:          
  361.  
  362. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::--------------------
  363. if NOT "!DPLACE!"=="" set DPLACE=%DPLACE:&=%
  364. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::--------------------
  365.  
  366. set whitespace=%DPLACE%
  367. setlocal enabledelayedexpansion
  368. call :whitespac
  369. set DPLACE=%whitespace%
  370. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  371. :::::::::::::::::::::::Asks You What You Want To Name The Download Directory:::::::::::::::::::::::
  372. ::::::::::::::::::::::                                                       ::::::::::::::::::::::
  373. ::::::::::::::::::::::  LEAVE BLANK & PRESS ENTER. IT WILL USE 1 OF 3 NAMES  ::::::::::::::::::::::
  374. ::::::::::::::::::::::                                                       ::::::::::::::::::::::
  375. ::::::::::::::::::::::1.Program title searched                               ::::::::::::::::::::::
  376. ::::::::::::::::::::::2.Program list number(s)                               ::::::::::::::::::::::
  377. ::::::::::::::::::::::3.Program pid code(s)                                  ::::::::::::::::::::::
  378. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::flchoice
  379. :flchoice
  380. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  381. echo.
  382. echo                                            ....
  383. echo                                        ____________
  384. echo                                    ____________________
  385. echo                                        ____________
  386. echo                                            ....
  387. echo.
  388. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::gataht
  389. :gataht
  390. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  391. @if not exist "R:\GET-IPLAYER.txt" GOTO :herelas
  392. set FPLACE=
  393. set /p FPLACE=:                 Do You Want It On PC or USB?
  394. set whitespace=%FPLACE%
  395. setlocal enabledelayedexpansion
  396. call :whitespac
  397. set FPLACE=%whitespace%
  398. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  399. ::::::::::::::::Asks If You Want To Download To USB If R:/GET-IPLAYER.txt Exists::::::::::::::::::::
  400. ::::::::::::::::                                                                ::::::::::::::::::::
  401. ::::::::::::::::  Assign a USB drive the letter R and create a text file named  ::::::::::::::::::::
  402. ::::::::::::::::         GET-IPLAYER in the ROOT Folder For This To Work        ::::::::::::::::::::
  403. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  404. Secho.
  405. cls
  406. echo.
  407. echo.
  408. if /i "%FPLACE%"=="" goto :gataht
  409. if /i "%FPLACE:~0,1%"=="p" SET FPLACE=pc&goto :herelas
  410. if /i "%FPLACE:~0,1%"=="u" SET FPLACE=usb&goto :herelas
  411. if /i not "%FPLACE:~0,1%"=="p" goto :gataht
  412. if /i not "%FPLACE:~0,1%"=="u" goto :gataht
  413. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::herelas
  414. :herelas
  415. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  416. echo                                            ....
  417. echo                                        ____________
  418. echo                                    ____________________
  419. echo                                        ____________
  420. echo                                            ....
  421. echo.
  422. @if not exist "R:\GET-IPLAYER.txt" echo    "!Pap!" Will Be Downloaded To "C:\downloads\media\%DPLACE%" Then Moved To "%userprofile%\desktop\Get-IPlayer\%Type%\%DPLACE%"
  423. @if not exist "R:\GET-IPLAYER.txt" goto :gooo
  424. @if /i "%FPLACE%"=="pc" echo    "!Pap!" Will Be Downloaded To "C:\downloads\media\%DPLACE%" Then Moved To "%userprofile%\desktop\Get-IPlayer\%Type%\%DPLACE%"
  425. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::gooo
  426. :gooo
  427. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  428. @if "%FPLACE%"=="usb" echo                "!Pap!" Will Be Downloaded To "C:\downloads\media\%DPLACE%" Then Moved To "R:\%Type%\%DPLACE%"
  429. timeout /T 1 >nul
  430. echo.
  431. echo                                            ....
  432. echo                                        ____________
  433. echo                                    ____________________
  434. echo                                        ____________
  435. echo                                            ....
  436. echo                                            ....
  437. echo                                        ____________
  438. echo                                    ____________________
  439. echo                                        ____________
  440. echo                                            ....
  441. echo.
  442. echo                       Searching "!Pap!"
  443. echo.
  444. echo                                            ....
  445. echo                                        ____________
  446. echo                                    ____________________
  447. echo                                        ____________
  448. echo                                            ....
  449. echo.
  450. :inputrefresh
  451. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  452. if /i "!Pap!"=="" CLS
  453. title Searching "!Pap!"
  454. set wanted=
  455. if /i "%onlycat%"=="Y" set wanted=INCLUDING %tttt%
  456. set notwanted=
  457. if /i "%excat%"=="Y" set notwanted=EXCLUDING %excatchoice%
  458. set thischan=
  459. set onon=
  460. if /i "%onlycha%"=="Y" set onon=ON CHANNEL &set thischan=--CHANNEL="%chch%"
  461. if /i "!Pap!"=="" TITLE FULL LIST OF %type% PROGRAMS %wanted% %notwanted% %onon%%chch%
  462. if "%earh%"=="Rget" TITLE REFRESHING THE FULL LIST OF %type% PROGRAMS %wanted% %notwanted%%onon%%chch%
  463. if "!dip!"=="--fields=pid" TITLE REFRESHING %type% PROGRAMS %wanted% %notwanted%%onon%%chch% WITH PID, NAME, SERIES ^& EPISODE
  464. if /i "!Pap!"=="" color 06
  465. :::::::::::::::(k):::::::::::::::S
  466. if /i not "%Pap%"=="" mode con lines=260
  467. :::::::::::::::(k):::::::::::::::E
  468. if "%type%"=="TV" mode con lines=9999 cols=201
  469. if "%type%"=="RADIO" mode con lines=9999 cols=201
  470. if "%type%"=="PODCAST" mode con lines=9999 cols=201
  471. :inputrefreshB
  472. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  473. if "!dip!"=="--fields=pid" C: & cd "\Program Files%TBIT%\get_iplayer\" & "%Windir%\system32\cmd.exe" /c get_iplayer --listformat="<pid>: <name>-<episode>" %thischan% %kkkk%=%tttt% %nnnn%=%excatchoice% --refresh %hide% --type=%type% "!Pap!" &goto :nopiD
  474. C: & cd "\Program Files%TBIT%\get_iplayer\" & "%Windir%\system32\cmd.exe" /c get_iplayer %thischan% %kkkk%=%tttt% %nnnn%=%excatchoice% --refresh %hide% --type=%type% "!Pap!"
  475. :nopiD
  476. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  477. ::::::::::::::::::::Sets The Catagories You May Have Chosen To Include/Exclude:::::::::::::::::::::
  478. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  479. if "!Pap!"=="" (TITLE Finished Updating %type% Index %onon%%chch%) ELSE (TITLE Finished Searching "!Pap!")
  480. echo.&echo.
  481. ECHO                     TO RESTART LEAVE BLANK ^& PRESS "ENTER"
  482. ::(P)S
  483. if "!hide!"=="--hide"    set adviceC= history is off enter Hget to switch on
  484. if "!hide!"==""    set adviceC= history is on enter Hgot to switch off
  485. ::(P)E
  486. echo                             %adviceC%
  487. echo.
  488. @if "%FORCED%"=="--force" COLOR 4e
  489. @if "%FORCED%"=="--force" ECHO         _______________________________________________________________________________
  490. @if "%FORCED%"=="--force" ECHO     ************** REMEMBER YOU HAVE SET TO FORCE THE DOWNLOAD! **************
  491. @if "%FORCED%"=="--force" ECHO     USE THE PROGRAMS "CODE" UNLESS YOU WISH TO DOWNLOAD EVERY MATCHING RESULT!
  492. @if "%FORCED%"=="--force" ECHO         _______________________________________________________________________________
  493. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  494. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  495. :::::::::::::::::::: When Forcing A Download The Above Message Will Appear To :::::::::::::::::::::
  496. :::::::::::::::::::: Remind You That Anything Matching What You Enter Will Be :::::::::::::::::::::
  497. ::::::::::::::::::::Downloaded Regardless Of It Being In The Recording History:::::::::::::::::::::
  498. ::::::::::::::::::::                                                          :::::::::::::::::::::
  499. ::::::::::::::::::::         Using The Programs Code Is Recommended           :::::::::::::::::::::
  500. ::::::::::::::::::::                                                          :::::::::::::::::::::
  501. ::::::::::::::::::::    Get-IPlayers Recording History Stops Programs From    :::::::::::::::::::::
  502. ::::::::::::::::::::           Being Accidentially Downloaded Again           :::::::::::::::::::::
  503. :::::::::::::::::::: Try To Download A Program Downloaded Before It Will Fail :::::::::::::::::::::
  504. ::::::::::::::::::::      Then Ask You If You Want To Force The Download      :::::::::::::::::::::
  505. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  506. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  507. SET advice=Use spaces between codes&SET adviceB=465 768 969 12 7 970 989&echo.&if not "!dip!"=="--fields=pid" echo                                    DOWNLOADING MANY PROGRAMS^?&echo                                       Enter piD for codes&echo.
  508. if "!dip!"=="--fields=pid" SET advice= use space between PIDS&echo.&echo                                    ENTER nuM TO REVERT BACK&SET adviceB=^?^?^?^?bk6t ^?^?^?^?bhq3&SET !earh!="!earh!"
  509. echo.
  510. echo                                    %advice%
  511. echo                                    %adviceB%
  512. echo.
  513. echo.&echo.
  514. if not "!dip!"=="--fields=pid" echo                                     ENTER CODE(S) OR TITLE&echo.
  515. set earh=
  516. set /p earh=:                                
  517. :::::::::::::::Remove leading & trailing whitespace:::::::::::::dS
  518. set whitespace=%earh%
  519. setlocal enabledelayedexpansion
  520. call :whitespac
  521. set earh=%whitespace%
  522. :::::::::::::::Remove leading & trailing whitespace:::::::::::::dE
  523. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  524. :::::::::::::::::::Asks You Which Program You Want To Download From The Results::::::::::::::::::::
  525. :::::::::::::::::::                                                            ::::::::::::::::::::
  526. :::::::::::::::::::1.Leave Blank To Go Back To Start                           ::::::::::::::::::::
  527. :::::::::::::::::::2.Enter Program Code To Download Just One Match             ::::::::::::::::::::
  528. :::::::::::::::::::3.Use A Space Between Each Programs code                    ::::::::::::::::::::
  529. :::::::::::::::::::4.Enter Program Title To Download All Matches               ::::::::::::::::::::
  530. :::::::::::::::::::5.Enter "Rget" to refresh the list                          ::::::::::::::::::::
  531. :::::::::::::::::::6.Enter "piD" to refresh the list with PID codes            ::::::::::::::::::::
  532. :::::::::::::::::::7.Enter "nuM" to revert from PID back to numbers list       ::::::::::::::::::::
  533. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  534. if /i "!earh!"=="" goto :beforestart
  535. if "!earh!"=="uSb"SET FPLACE=uSb&goto :inputrefresh
  536. if "!earh!"=="pC" SET FPLACE=pc&goto :inputrefresh
  537. ::(P) S
  538. if "!earh!"=="Hget" CLS&SET hide=&goto :inputrefresh
  539. if "!earh!"=="Hgot" CLS&SET hide=--hide&goto :inputrefresh
  540. ::(P) E
  541. if "!earh!"=="Rget" CLS&goto :inputrefresh
  542. if "!earh!"=="piD" CLS&SET dip=--fields=pid&goto :inputrefresh
  543. if "!earh!"=="nuM" CLS&SET dip=&SET "!earh!"=!earh!&goto :inputrefresh
  544. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  545. :::::::::::::::::::Delete the character string ' ' from %earh% so can determine if only numbers::::
  546. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  547. SET NOspaces=%earh: =%
  548. echo %NOspaces%|findstr /r "[^0-9]" > nul
  549. if errorlevel 1 set tttt=\%tttt%&goto :passnumcheck
  550. if "!dip!"=="--fields=pid" goto :passnumcheck
  551. if not errorlevel 1 SET earh="%earh%"&set tttt=
  552. :passnumcheck
  553. if /i "%tttt%"=="\" SET tttt=
  554. color 0e
  555. echo.&echo.
  556. echo.
  557. if /i NOT "!DPLACE!"=="" GOTO :afternotpap
  558. if "!DPLACE!"=="" SET DPLACE=%earh:"=%
  559. if /i NOT "!Pap!"=="" SET DPLACE=%Pap:"=%
  560. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::afternotpap
  561. :afternotpap
  562. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  563. title Downloading Program: %earh%
  564. echo.&echo.
  565. echo                                 Downloading Program %earh%
  566. echo                                   ......................
  567. echo                                      ................
  568. echo                                         ..........
  569. echo                                            ....
  570. echo                                             ..
  571. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::HTTPP
  572. :HTTPP
  573. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  574. :::::::::::::::(i):::::::::::::::S
  575. @if exist "C:\downloads\media\%type%%tttt%\%DPLACE%\*.partial.*" del "C:\downloads\media\%type%%tttt%\%DPLACE%\*.partial.*"
  576. :::::::::::::::(i):::::::::::::::E
  577. @if exist "C:\downloads\media\%type%%tttt%\%DPLACE%\*.flv*"      del "C:\downloads\media\%type%%tttt%\%DPLACE%\*.flv*"
  578. echo                                            ....
  579. echo.                                        _________
  580. echo                                      _______________
  581. echo                                         _________
  582. echo                                            ____
  583. echo                                             ..
  584. echo                                             ..
  585. :dodown
  586. :::::::::::::::(l):::::::::::::::S
  587. if NOT "!dip!"=="--fields=pid" mode con lines=50
  588. :::::::::::::::(l):::::::::::::::E
  589. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::                                    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  590. :::::::::::::::::OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO:::::::::::::::::::
  591. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::                                    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  592. C: & cd "\Program Files%TBIT%\get_iplayer\" & "%Windir%\system32\cmd.exe" /c get_iplayer %http% %hide% --type=%type% %dip% %earh% %FORCED% --get --mode=best%wma% --whitespace --output="\downloads\media\%type%%tttt%\%DPLACE%"
  593. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::                                    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  594. :::::::::::::::::OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO:::::::::::::::::::
  595. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::                                    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  596. :yeshitp
  597. ::(v):
  598. if /i not "%type%"=="tv" timeout /T 2 >nul
  599. @IF EXIST "C:\downloads\media\%type%%tttt%\%DPLACE%" for /F %%N in ('dir /S/B "C:\downloads\media\%type%%tttt%\%DPLACE%" ^| find /V /C "::"') do (if %%N EQU 0 rd "C:\downloads\media\%type%%tttt%\%DPLACE%")
  600. @IF EXIST "C:\downloads\media\%type%%tttt%" for /F %%N in ('dir /S/B "C:\downloads\media\%type%%tttt%" ^| find /V /C "::"') do (if %%N EQU 0 rd "C:\downloads\media\%type%%tttt%")
  601. @IF EXIST "C:\downloads\media\%type%" for /F %%N in ('dir /S/B "C:\downloads\media\%type%" ^| find /V /C "::"') do (if %%N EQU 0 rd "C:\downloads\media\%type%")
  602. @if NOT exist "C:\downloads\media\%type%%tttt%\%DPLACE%" GOTO :PANTS
  603. echo                                             ..
  604. echo                                             ..
  605. @if NOT exist "C:\downloads\media\%type%%tttt%\%DPLACE%\*.partial.*" SET skipSD=
  606. :::::::::::::::(i):::::::::::::::S
  607.     @if exist "C:\downloads\media\%type%%tttt%\%DPLACE%\*.partial.*" SET skipSD=dontdown&del "C:\downloads\media\%type%%tttt%\%DPLACE%\*.partial.*"&goto :dodown
  608. :::::::::::::::(i):::::::::::::::E
  609.     @if exist "C:\downloads\media\%type%%tttt%\%DPLACE%\*.flv*"      SET skipSD=dontdown&del "C:\downloads\media\%type%%tttt%\%DPLACE%\*.flv*"     &goto :dodown
  610. echo                                             ..
  611. echo                                             ..
  612. echo                                             ..
  613. if /i "%FPLACE%"=="usb" goto :instood
  614. if not exist "!NewPlace!" goto :nonewplace
  615. if /i "!NewPlace:~1,2!"==":\" %SystemRoot%\System32\robocopy "C:\downloads\media\%type%%tttt%\%DPLACE%" "!NewPlace!\%type%%tttt%\%DPLACE%" /MOVE /V /R:5 /W:10 /ETA & GOTO :instaed
  616. :nonewplace
  617. @IF NOT EXIST "%userprofile%\desktop\Get-IPlayer" MD "%userprofile%\desktop\Get-IPlayer\%type%%tttt%\%DPLACE%"
  618. :::::::::::::::(j):::::::::::::::S
  619. if exist "C:\downloads\media\%type%%tttt%\%DPLACE%" %SystemRoot%\System32\robocopy "C:\downloads\media\%type%%tttt%\%DPLACE%" "%userprofile%\desktop\Get-IPlayer\%type%%tttt%\%DPLACE%" /MOVE /V /R:5 /W:10 /ETA
  620. :::::::::::::::(j):::::::::::::::E
  621. if /i NOT "%FPLACE%"=="usb" goto :instaed
  622. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::instood
  623. :instood
  624. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  625. if exist "C:\downloads\media\%type%%tttt%\%DPLACE%" %SystemRoot%\System32\robocopy "C:\downloads\media\%type%%tttt%\%DPLACE%" "R:\%type%%tttt%\%DPLACE%" /MOVE /V /R:5 /W:10 /ETA
  626. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::instaed
  627. :instaed
  628. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  629. echo                                             ..
  630. if "%skipSD%"=="dontdown" goto :dodown
  631. @IF EXIST "C:\downloads\media\%type%%tttt%" for /F %%N in ('dir /S/B "C:\downloads\media\%type%%tttt%" ^| find /V /C "::"') do (if %%N EQU 0 rd "C:\downloads\media\%type%%tttt%")
  632. @IF EXIST "C:\downloads\media\%type%" for /F %%N in ('dir /S/B "C:\downloads\media\%type%" ^| find /V /C "::"') do (if %%N EQU 0 rd "C:\downloads\media\%type%")
  633. mode con cols=37
  634. mode con lines=8
  635. @color 0a
  636. echo.&echo.&echo.
  637. echo           "!Pap!" Downloaded
  638. echo.&echo.&echo.
  639. mode con cols=70
  640. mode con lines=8
  641. @color 0e
  642. goto :here9
  643. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::again
  644. :again
  645. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  646. @color 0c
  647. cls
  648. echo.&echo.&echo.
  649. echo                         Invalid Choice!
  650. timeout /T 1 >nul
  651. cls
  652. @color 0e
  653. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::here9
  654. :here9
  655. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  656. CLS
  657. TITLE Finished Downloading !pap!
  658. echo.&echo.&echo.
  659. set doyou=
  660. set /p doyou=%username% would you like to download something else?
  661. set whitespace=%doyou%
  662. setlocal enabledelayedexpansion
  663. call :whitespac
  664. set doyou=%whitespace%
  665. if /i "%doyou%"=="" goto :beforestart
  666. if /i "%doyou:~0,1%"=="y" goto :beforestart
  667. if /i "%doyou:~0,1%"=="n" goto :noagain
  668. if /i not "%doyou:~0,1%"=="y" goto :again
  669. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::noagain
  670. :noagain
  671. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  672. cls
  673. echo.&echo.&echo.
  674. echo                               FIN!
  675. timeout /T 3 >nul
  676. DEL "%temp%\dow.txt" /q
  677. ::(w):S
  678. pushd "%userprofile%\Desktop\Get-IPlayer" & for /f "usebackq delims=" %%d in (`"dir /ad/b/s | sort /R"`) do rd "%%d" >NUL 2>NUL
  679. pushd "C:\downloads\media" & for /f "usebackq delims=" %%d in (`"dir /ad/b/s | sort /R"`) do rd "%%d" >NUL 2>NUL
  680. ::(w):E
  681. endlocal
  682. exit
  683. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::PANTS
  684. :PANTS
  685. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  686. :::::::::::::::::           Asks If You Want To Force The Download           ::::::::::::::::::::::
  687. :::::::::::::::::                                                            ::::::::::::::::::::::
  688. :::::::::::::::::Type Quit, Exit or End To Close The Get-IPlayer Batch Window::::::::::::::::::::::
  689. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  690. @color 0c
  691. :wrongentry
  692. mode con cols=140
  693. mode con lines=20
  694. title DOWNLOAD FAILED!
  695. echo.&echo.&echo.
  696. echo                                 Failed To Download "%earh:"=%"
  697. echo.&echo.
  698. echo                            You Will Need To Force Download "%earh:"=%"
  699. echo.
  700. echo                            n=continue
  701. echo                            y=force download
  702. ::(P): S
  703. if "%hide%"=="" echo                            h=hide recording history
  704. if "%hide%"=="--hide" echo                              s=show recording history
  705. ::(P): E
  706. echo                            e=exit
  707. set doyouneed=
  708. set /p doyouneed=:                             
  709. set whitespace=%doyouneed%
  710. setlocal enabledelayedexpansion
  711. call :whitespac
  712. set doyouneed=%whitespace%
  713. if /i "%doyouneed%"=="" GOTO wrongentry
  714. if /i "%doyouneed:~0,1%"=="n" SET FORCED=
  715. if /i "%doyouneed:~0,1%"=="n" IF EXIST "%userprofile%\desktop\Get-IPlayer" for /F %%N in ('dir /S/B "%userprofile%\desktop\Get-IPlayer" ^| find /V /C "::"') do (if %%N EQU 0 rd "%userprofile%\desktop\Get-IPlayer")
  716. ::(P):S
  717. if /i "%doyouneed:~0,1%"=="h" set hide=--hide&GOTO :wrongentry
  718. if /i "%doyouneed:~0,1%"=="s" set hide=&GOTO :wrongentry
  719. ::(P):E
  720. if /i "%doyouneed:~0,1%"=="E" GOTO :CLEANUP
  721. ::(y):S
  722. if /i "%doyouneed:~0,1%"=="Y" SET FORCED=--force&set hide=
  723. ::(y):E
  724. echo.&echo.
  725. GOTO NOcleanup
  726. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::CLEANUP
  727. :CLEANUP
  728. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  729. ::(w):S
  730. pushd "%userprofile%\Desktop\Get-IPlayer" & for /f "usebackq delims=" %%d in (`"dir /ad/b/s | sort /R"`) do rd "%%d" >NUL 2>NUL
  731. pushd "C:\downloads\media" & for /f "usebackq delims=" %%d in (`"dir /ad/b/s | sort /R"`) do rd "%%d" >NUL 2>NUL
  732. pushd "%~dp0"
  733. ::(w):E
  734. @IF EXIST "%userprofile%\desktop\Get-IPlayer" for /F %%N in ('dir /S/B "%userprofile%\desktop\Get-IPlayer" ^| find /V /C "::"') do (if %%N EQU 0 rd "%userprofile%\desktop\Get-IPlayer")
  735. @IF EXIST "R:\%type%\%DPLACE%\" RD "R:\%type%\%DPLACE%\"
  736. @IF EXIST "R:\%type%\%DPLACE%\" RD "R:\%type%\%DPLACE%\"
  737. DEL "%temp%\dow.txt" /q
  738. EXIT
  739. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::NOcleanup
  740. :NOcleanup
  741. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  742. ::timeout /T 1 >nul
  743. @color 0e
  744. mode con cols=37
  745. mode con lines=8
  746. @if "%FORCED%"=="--force" mode con lines=10
  747. title RETRY
  748. @if "%FORCED%"=="--force" TITLE FORCED RETRY
  749. echo.&echo.&echo.
  750. echo              RESTARTING
  751. @if "%FORCED%"=="--force" ECHO.
  752. ::(o): S
  753. @if "%FORCED%"=="--force" ECHO            IN FORCED MODE
  754. timeout /T 1 >nul
  755. @if "%FORCED%"=="--force" GOTO :inputrefresh
  756. ::(o): E
  757. SET DPLACE=
  758. SET earh=
  759. SET nnnn=
  760. SET excatchoice=
  761. SET notwanted=
  762. SET onlycat=
  763. SET excat=
  764. SET tttt=
  765. SET kkkk=
  766. set chch=
  767. set onon=
  768. set thischan=
  769. set type=TV
  770. SET proggy=
  771. SET dip=
  772. echo.&echo.&echo.
  773. timeout /T 2 >nul
  774. if "%TBIT%"==" (x86)" goto :skipp
  775. GOTO :START
  776. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::beforestart
  777. :beforestart
  778. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  779. @if not "%FORCED%"=="--force" goto :NOcleanup
  780. mode con cols=70
  781. mode con lines=8
  782. @color 0e
  783. echo.&echo.&echo.
  784. @if "%FORCED%"=="--force" TITLE TURN FORCED DOWNLOADING OFF?&set /p doyouneedAGAIN=TURN FORCED DOWNLOADING OFF Y/N?
  785. set whitespace=%doyouneedAGAIN%
  786. setlocal enabledelayedexpansion
  787. call :whitespac
  788. set doyouneedAGAIN=%whitespace%
  789.     if /i "%doyouneedAGAIN%"=="" GOTO :beforestart
  790.     if /i "%doyouneedAGAIN:~0,1%"=="n" GOTO :NOcleanup
  791.     if /i "%doyouneedAGAIN:~0,1%"=="y" SET FORCED=
  792.     if /i "%doyouneedAGAIN:~0,1%"=="y" GOTO :NOcleanup
  793. if /i not "%doyouneedAGAIN:~0,1%"=="y" goto :beforestart
  794. if /i not "%doyouneedAGAIN:~0,1%"=="n" goto :beforestart
  795. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  796. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  797. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  798. :::::::::::::::::::======================================================::::::::::::::::::::::::::
  799. :::::::::::::::::::    This Batch File Is To Be Used With Get-IPlayer    ::::::::::::::::::::::::::
  800. :::::::::::::::::::                                                      ::::::::::::::::::::::::::
  801. :::::::::::::::::::                  By Terence Hamill                   ::::::::::::::::::::::::::
  802. :::::::::::::::::::                                                      ::::::::::::::::::::::::::
  803. :::::::::::::::::::Get-IPlayer Downloads Streams From The IPlayer Website::::::::::::::::::::::::::
  804. :::::::::::::::::::======================================================::::::::::::::::::::::::::
  805. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  806. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  807. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  808. :::::::::::::::::::======================================================::::::::::::::::::::::::::
  809. :::::::::::::::::::        Get-IPlayer Was Written By Phil Lewis         ::::::::::::::::::::::::::
  810. :::::::::::::::::::======================================================::::::::::::::::::::::::::
  811. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  812. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  813. :::::::::::::::::::                                                      ::::::::::::::::::::::::::
  814. :::::::::::::::::::       Get-IPlayer Has Much More Functionality        ::::::::::::::::::::::::::
  815. :::::::::::::::::::                                                      ::::::::::::::::::::::::::
  816. :::::::::::::::::::   Select Get-IPlayer From Programs To Learn More     ::::::::::::::::::::::::::
  817. :::::::::::::::::::                                                      ::::::::::::::::::::::::::
  818. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  819. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  820. :::::::::::::::::::                                                      ::::::::::::::::::::::::::
  821. :::::::::::::::::::         I Wrote This Batch File For A Friend         ::::::::::::::::::::::::::
  822. :::::::::::::::::::          Who Was Not Up For Editing Scripts          ::::::::::::::::::::::::::
  823. :::::::::::::::::::           Some Is Copy Pasted So Could Be            ::::::::::::::::::::::::::
  824. :::::::::::::::::::               Cleaned Up A Great Deal                ::::::::::::::::::::::::::
  825. :::::::::::::::::::                                                      ::::::::::::::::::::::::::
  826. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  827. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  828. :::::::::::::::::::   A nice ghetto batch file I've written for You to   ::::::::::::::::::::::::::
  829. :::::::::::::::::::       make use of and the first bit of Batch         ::::::::::::::::::::::::::
  830. :::::::::::::::::::      I have written besides Robocopy commands        ::::::::::::::::::::::::::
  831. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  832. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::DOWNLOADGET
  833. :DOWNLOADGET
  834. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  835. :::::::::::::::Asks You if You Want To Download get-iplayer.exe From Infradead.org            :::::
  836. :::::::::::::::                                                                               :::::
  837. :::::::::::::::1.Download The exe                                                             :::::
  838. :::::::::::::::2.Install get-iplayer                                                          :::::
  839. :::::::::::::::3.Now This Batch File Can Be Used To Download Programs From The IPlayer Website:::::
  840. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  841. CLS
  842. echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.
  843. set IPlay=
  844. set /p IPlay=:                 Would You Like To Download ^& Install Get-IPlayer %username% Y or N?
  845. set whitespace=%IPlay%
  846. setlocal enabledelayedexpansion
  847. call :whitespac
  848. set IPlay=%whitespace%
  849. if /i "%IPlay%"=="" GOTO :DOWNfailLOADGET
  850. if exist "%userprofile%\Desktop\GET-IPLAYER.txt" echo.&echo.&echo.&echo.&echo              Please read GET-IPLAYER.txt file in&echo.&echo              %CD%
  851. echo.&echo.&echo.&echo.
  852. if /i "%IPlay:~0,1%"=="Y" echo                 Press any key to continue get-iplayer download
  853. if /i "%IPlay:~0,1%"=="Y" pause>nul&if not exist "C:\Program Files%TBIT%\get_iplayer\Uninst.exe" echo You can have files downloaded to a usb device when completed>GET-IPLAYER.txt&ECHO Put this file in the root folder of usb drive (R:)>>GET-IPLAYER.txt&echo Enables GET-IPLAYER.bat to check if the usb drive is plugged in.>>GET-IPLAYER.txt&ECHO.>>GET-IPLAYER.txt&echo.>>GET-IPLAYER.txt&ECHO You can go on ^& install get-iplayer now :)>>GET-IPLAYER.txt
  854. if /i "%IPlay:~0,1%"=="Y" TITLE DOWNLOADING GET-IPLAYER&bitsadmin.exe /transfer "Downloading" http://www.infradead.org/get_iplayer_win/get_iplayer_setup_latest.exe %userprofile%\Desktop\get_iplayer_setup_latest.exe
  855. echo.&echo.&echo.
  856. if /i "%IPlay:~0,1%"=="Y" ECHO:                Installing get_iplayer_setup_latest.exe
  857. echo.&echo.&echo.
  858. if /i "%IPlay:~0,1%"=="N" if exist "%userprofile%\desktop\get_iplayer_setup_latest.exe" del "%userprofile%\desktop\get_iplayer_setup_latest.exe"&goto start
  859. if /i "%IPlay:~0,1%"=="N" if not exist "C:\Program Files%TBIT%\get_iplayer\Uninst.exe" EXIT
  860. if /i "%IPlay:~0,1%"=="N" if exist "C:\Program Files%TBIT%\get_iplayer\Uninst.exe" goto start                   pause
  861. if /i "%IPlay:~0,1%"=="Y" goto install
  862. :DOWNfailLOADGET
  863. cls
  864. echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.
  865. if /i not "%IPlay:~0,1%"=="N" echo                                                Invalid Choice!
  866. timeout /T 2 >nul
  867. @color 0c
  868. timeout /T 1 >nul
  869. cls
  870. @color 0e
  871. if /i "%IPlay%"=="" GOTO :DOWNLOADGET
  872. if /i not "%IPlay%"=="N" goto :DOWNLOADGET
  873. :install
  874. ::(t): S
  875. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  876. :::::::::::::::                      Add Shortcut To Desktop                        :::::::::::::::
  877. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  878. set   SCRIPT="%TEMP%\%RANDOM%-%RANDOM%.vbs"
  879.    echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
  880. echo sLinkFile = "%USERPROFILE%\Desktop\%~n0.lnk" >> %SCRIPT%
  881. ::echo sLinkFile = "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\get_iplayer\%~n0.lnk" >> %SCRIPT%
  882.          echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
  883.         echo oLink.TargetPath = "%CD%\%~n0.bat" >> %SCRIPT%
  884.                              echo oLink.WindowStyle = 3 >> %SCRIPT%
  885. if exist "%CD%\getiplayer.ico"                                  echo oLink.IconLocation = "%CD%\getiplayer.ico"                                  >> %SCRIPT% &goto :iconDone
  886. if exist "C:\Program Files Portable\get_iplayer\getiplayer.ico" echo oLink.IconLocation = "C:\Program Files Portable\get_iplayer\getiplayer.ico" >> %SCRIPT% &goto :iconDone
  887. if exist "C:\Program Files Portable\icons\large01BBC.ico"       echo oLink.IconLocation = "C:\Program Files Portable\icons\large01BBC.ico"       >> %SCRIPT% &goto :iconDone
  888. if exist "C:\Program Files\get_iplayer\iplayer_logo.ico"        echo oLink.IconLocation = "C:\Program Files\get_iplayer\iplayer_logo.ico"        >> %SCRIPT%
  889. :iconDone
  890. echo oLink.Save >> %SCRIPT%
  891. cscript /nologo %SCRIPT%
  892. del %SCRIPT%
  893. if /i "!Pap!"=="GetS" GOTO :raddypodcst
  894. ::(t): E
  895. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  896. if exist "%userprofile%\desktop\get_iplayer_setup_latest.exe" mode con cols=37&mode con cols=50&mode con lines=12&color F0&TITLE INSTALLING GET-IPLAYER&ECHO.&ECHO.&ECHO.&ECHO                      WAITING&ECHO.&ECHO.&if exist "GET-IPLAYER.txt" ECHO        Please read GET-IPLAYER.txt file in&echo.&echo %CD%
  897. if exist "%userprofile%\desktop\get_iplayer_setup_latest.exe" start /WAIT %userprofile%\desktop\get_iplayer_setup_latest.exe& del get_iplayer_setup_latest.exe&goto start
  898. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::UPDATEGET
  899. :UPDATEGET
  900. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  901. :::::::::::::::               Asks You if You Want To Update get-iplayer.exe                  :::::
  902. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  903. CLS
  904. echo.&echo.&echo.
  905. set UPDATEGET=
  906. set /p UPDATEGET=:                 Would You Like To Update Get-IPlayer %username% Y or N?
  907. set whitespace=%UPDATEGET%
  908. setlocal enabledelayedexpansion
  909. call :whitespac
  910. set UPDATEGET=%whitespace%
  911. if /i "%UPDATEGET%"=="" GOTO :UPDATEGET
  912. echo.&echo.&echo.
  913. if /i "%UPDATEGET:~0,1%"=="Y" TITLE UPDATING GET-IPLAYER&ECHO:                 Updating get-iplayer&C: & cd "\Program Files\get_iplayer\" & "%Windir%\system32\cmd.exe" /c get_iplayer --update
  914. echo.&echo.&echo.
  915. pause
  916. if /i "%UPDATEGET:~0,1%"=="Y" GOTO START
  917. if /i "%UPDATEGET:~0,1%"=="N" GOTO START
  918. cls
  919. echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.
  920. if /i not "%UPDATEGET:~0,1%"=="N" GOTO START
  921. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::UPDATEGETSWF
  922. :UPDATEGETSWF
  923. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  924. :::::::::::::::               Asks You if You Want To Update get-iplayer SWF URL              :::::
  925. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  926. CLS
  927. echo.&echo.&echo.
  928. set UPDATEGETSWF=
  929. set /p UPDATEGETSWF=:              Would You Like To Update The SWF URL %username% Y or N?
  930. set whitespace=%UPDATEGETSWF%
  931. setlocal enabledelayedexpansion
  932. call :whitespac
  933. set UPDATEGETSWF=%whitespace%
  934. if /i "%UPDATEGETSWF%"=="" GOTO :UPDATEGETSWF
  935. if /i "%UPDATEGETSWF:~0,1%"=="N" GOTO START
  936. echo.&echo.&echo.
  937. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::UPDATEURLSWF
  938. :UPDATEURLSWF
  939. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  940. CLS
  941. echo.&echo.&echo.
  942. if /i "%UPDATEGETSWF:~0,1%"=="Y" set /p UPDATEURLSWF=Enter The New SWF URL:  
  943. set whitespace=%UPDATEURLSWF%
  944. setlocal enabledelayedexpansion
  945. call :whitespac
  946. set UPDATEURLSWF=%whitespace%
  947. if /i "%UPDATEURLSWF%"=="" GOTO :UPDATEGETSWF
  948. if /i NOT "%UPDATEURLSWF:~0,4%"=="http" GOTO :UPDATEGETSWF
  949. if /i "%UPDATEURLSWF:~0,4%"=="http" SET httpSWF=UPDATEURLSWF
  950. echo.&echo.&echo.
  951. if /i "%UPDATEGETSWF:~0,1%"=="Y" TITLE DELETING GET-IPLAYER PREFERENCES&ECHO:              Deleting Prefernces&C: & cd "\Program Files%TBIT%\get_iplayer\" & "%Windir%\system32\cmd.exe" /c get_iplayer --prefs-del --rtmp-tv-opts="X" --rtmp-radio-opts="X"  --rtmp-livetv-opts="X" --rtmp-liveradio-opts="X"
  952. echo.&echo.&echo.
  953. if /i "%UPDATEGETSWF:~0,1%"=="Y" TITLE UPDATING SWF File URL&ECHO:                 Updating SWF File URL&C: & cd "\Program Files\get_iplayer\" & "%Windir%\system32\cmd.exe" /c get_iplayer --prefs-add --rtmp-tv-opts="--swfVfy %httpSWF%"
  954. echo.&echo.&echo.
  955. pause
  956. GOTO START
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement