PDA

View Full Version : Does the DownloadStudio command line have a Suggested Name parameter?



WillPittenger
08-12-2016, 02:11 PM
When I download videos from YouTube, I use FlashGot in a Firefox fork to add the job to DownloadStudio. I've found DownloadStudio's default name for such vidoes is normally totally useless. It's just the name of the page the video is on. Is there a way to have FlashGot provide the name? I know it has a suggested name placeholder. I'm guessing that'd be the video title. The string FlashGot is set up to use is below. This is the same as what's suggested by the DownloadStudio help file, but I deleted the parameter that tells DownloadStudio where to save the file. That didn't make sense.


<downloadstudio><originator>firefox</originator><script><add_jobs display_dialog=yes><joblist><job> [<url>URL</url>] [<url_list_file>UFILE</url_list_file>] [<referer>REFERER</referer>] [<post_data>POST</post_data>] [<cookie>COOKIE</cookie>] </job></joblist></add_jobs></script></downloadstudio>

jason2255
08-13-2016, 05:45 PM
any body to help this issue?

Peter
08-15-2016, 09:02 AM
Hi,
you can try using the <file> tag to set the file name, you can add this to the xml <file>FNAME</file>

jason2255
08-15-2016, 06:13 PM
thanks peter, ll try it.

WillPittenger
08-17-2016, 05:56 AM
BTW: That only works if you surround the FNAME part in brackets. They can, however, be outside the XML tag. Without the brackets, the FNAME string is treated as a literal. Unfortunately, I also found the default name for YouTube videos can be rather long and contain characters not allowed in file names. When you then give the focus to the file name text field in the Add New Job dialog, DownloadStudio crashes. See the attached crash logs. This happens even before you have a chance to actually change the name and well before you start or save the job.

Peter
08-17-2016, 09:16 AM
I have tried to reproduce the crash here by downloading the same video using Flash Got but it does not crash, DownloadStudio resolves the name and changes it to videoplayback so I have made a change to prevent this overriding the 'good' name from FlashGot.

The FlashGot template I am using is:

<downloadstudio><originator>firefox</originator><script><add_jobs display_dialog=yes><joblist><job> [<url>URL</url>] [<url_list_file>UFILE</url_list_file>]
[<file>FNAME</file>]
[<referer>REFERER</referer>] [<post_data>POST</post_data>] [<cookie>COOKIE</cookie>] </job></joblist></add_jobs></script></downloadstudio>

I will send you a patch with this change and this should also fix the crashes.

WillPittenger
08-17-2016, 10:11 AM
The video I was attempting to download was https://www.youtube.com/watch?v=rf52LSg4AsA.

Peter
08-17-2016, 10:39 AM
This is the same video I tested with here.

WillPittenger
08-17-2016, 10:54 AM
Still crashes.

Peter
08-17-2016, 02:00 PM
I was unable to reproduce the crash on two PCs here when downloading https://www.youtube.com/watch?v=rf52LSg4AsA using FlashGot. Can you please tell me which video you selected from FlashGot's list so I can try selecting the same one here?

Please also check to make sure your FlashGot parameters match:

<downloadstudio><originator>firefox</originator><script><add_jobs display_dialog=yes><joblist><job> [<url>URL</url>] [<url_list_file>UFILE</url_list_file>]
[<file>FNAME</file>]
[<referer>REFERER</referer>] [<post_data>POST</post_data>] [<cookie>COOKIE</cookie>] </job></joblist></add_jobs></script></downloadstudio>

This is what I am using and it does not crash.

WillPittenger
08-17-2016, 02:13 PM
I picked the highest bandwidth option. It's 684 megs. My string is below:


<downloadstudio><originator>firefox</originator><script><add_jobs display_dialog=yes><joblist><job> [<url>URL</url>] [<url_list_file>UFILE</url_list_file>] [<referer>REFERER</referer>] [<post_data>POST</post_data>] [<cookie>COOKIE</cookie>][<file>FNAME</file>] </job></joblist></add_jobs></script></downloadstudio>

Peter
08-17-2016, 02:36 PM
I reproduced the crash using your FlashGot parameters, please try using my FlashGot parameters i

WillPittenger
08-17-2016, 04:30 PM
Weird. That works. The only difference I see is the order. I put the <file> tag at the end of the <job>. You put it at the start. Why would that matter?