Advertisement
WannaGet

GETPaP

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