aviaryan / Kissanime-Batch-Downloader

:jp: :tv: KissAnime, KissCartoon and KissAsian batch links generator script
Apache License 2.0
134 stars 45 forks source link

IDM download name detection support #11

Open MacgyverJohnson opened 7 years ago

MacgyverJohnson commented 7 years ago

Hello there @aviaryan Its a great pleasure to see such a wonderful script being developed. I was wondering if if there was any way for IDM >import list of links to detect episode name/title instead of videoplayback(n) where n is any number..... If that's not possible with IDM is it possible with aria2 ? Thanks

aviaryan commented 7 years ago

Using the aria2 helper script included in this repo, you can download episodes from the links.txt file with proper names. IDM should support some special syntax to allow filenames with the links in the file. If we can find that format, maybe we can add a fourth parameter in the script to ask users for what type of output they want.

MacgyverJohnson commented 7 years ago

Thanks for the swift reply @aviaryan There is indeed a parameter for that /f usage info /f local_file_name - defines the local file name to save the file For more info u can visit this https://www.internetdownloadmanager.com/support/command_line.html You may start downloads from command line using command line parameters

You may start IDM from the command line using the following parameters

idman /s

or idman /d URL [/p local_path] [/f local_file_name] [/q] [/h][/n] [/a]
Parameters:

/d URL - downloads a file

e.g. IDMan.exe /d "http://www.internetdownloadmanager.com/path/FileName.zip"

/s - starts queue in scheduler

/p local_path - defines the local path where to save the file

/f local_file_name - defines the local file name to save the file

/q - IDM will exit after the successful downloading. This parameter works only for the first copy

/h - IDM will hang up your connection after the successful downloading

/n - turns on the silent mode when IDM doesn't ask any questions

/a - add a file specified with /d to download queue, but don't start downloading

Parameters /a, /h, /n, /q, /f local_file_name, /p local_path work only if you specified the file to download with /d URL

Examples

C:\>idman.exe /n /d http://www.tonec.com/download/idman317.exe
aviaryan commented 7 years ago

Thanks @MacgyverJohnson but what I am looking for here is a way in which local file can include filenames too, so that IDM will pick up the filenames and use that for downloading.

Example (just to give you an idea) -

http://ex.com/link1.txt save_this_as_this.txt
http://ex.com/link2.txt save_this_as_that.txt

Does a syntax like this exist for IDM?

aviaryan commented 7 years ago

@MacgyverJohnson Now we have an option to export links as HTML page. I believe IDM has a feature to download all links from the page at once. Why don't you give it a try. The episode links are being referred by proper names in the HTML page so maybe IDM will pick the correct name while downloading.

MacgyverJohnson commented 7 years ago

@aviaryan sorry ..just tried out the html one ...doesn't capture name....IDM can only capture title/name for video when the video is streamed inside popular browsers which is part of

"Advanced Browser Integration"

For IDM individual link renaming will work with the following usage: IDMan.exe /d http://www.internetdownloadmanager.com/path/FileName.zip /f Corrected_filename.zip This will download Filename.zip and save it as Corrected_filename.zip.... So all that is need to be done is to create a windows batch file that will generate list like that one per line ...IDM download notification dialog box will popup and one needs to select the download later button... It will create n popups for n episodes but practically its GOLDEN :) For instance here's an example batch file

IDMan.exe /d http://data.whicdn.com/images/7212365/large.jpg /f Cute_unicorn1.jpg
timeout 2
IDMan.exe /d http://728z.taixiaoyu.com/assets/img/unicorn.jpg /f Cute_unicorn2.jpg

timeout pauses for 2 seconds(not necessary) as u can tell this batch file downloads large.jpg and unicorn.jpg and saves them as Cute_unicorn1.jpg and Cute_unicorn2.jpg respectively

After reaching out to IDM Dev, I confirmed that embedding file rename operation inside a list isn't implemented yet on IDM but in future its possible

Thanks

aviaryan commented 7 years ago

@MacgyverJohnson Really sorry to hear that. Btw, if you can use Firefox, I just added a way that works (tested it myself). https://github.com/aviaryan/Kissanime-Batch-Downloader#dta

MacgyverJohnson commented 7 years ago

Thanks...I have used dta before for batch downloading and it has a really good renaming mask

blackholeearth commented 6 years ago

@MacgyverJohnson your batch exxapmle works. thanks ill use this with youtoube-dl get all videos in playlist to idm. cuz its downloader way slower on clunky internet/wifi

#also this format works too.   creates folder1 dir in your default idm download dir
 IDMan.exe /n /d http://728z.taixiaoyu.com/assets/img/unicorn.jpg /f  folder1/unicorn.jpg