Release YTDownloader, a simple tool to download Youtube videos


This is probably just a coincidence because I was downloading videos yesterday (torpor's post was yesterday morning), but when I tried to download some videos just now, it failed... on both this and get-flash-videos. I'm on my university's network right now, so if it doesn't start working again sporadically, I'll check if it works on our network when I get home.


EDIT: Actually, I think this started for me yesterday. I was downloading the TAS of Mario Adventure with get-flash-videos, and it was only half-done when it said it was done (I only found this out when I was watching the video and it ended prematurely). That was around noon, give or take an hour. Just now was the first time I tried downloading a video since then.
 
Last edited by a moderator:
This is probably just a coincidence because I was downloading videos yesterday (torpor's post was yesterday morning), but when I tried to download some videos just now, it failed... on both this and get-flash-videos. I'm on my university's network right now, so if it doesn't start working again sporadically, I'll check if it works on our network when I get home.


EDIT: Actually, I think this started for me yesterday. I was downloading the TAS of Mario Adventure with get-flash-videos, and it was only half-done when it said it was done (I only found this out when I was watching the video and it ended prematurely). That was around noon, give or take an hour. Just now was the first time I tried downloading a video since then.

Allright I will look into that. I may take a few days to find a fix, or longer if this is youtube related...
 
I tried to download 4 videos yesterday, two failed - but also failed with get flash videos, I imagine this must be a change on Youtube's end then?
 
ok i found the problem. I will update the package tomorrow if I find enough time.

Out of curiosity, what's the problem?

Youtube modified their player somehow - I tried updating to the latest youtube-dl (the underlying script used by the app) and this worked again. I simply need to release the PND now, will be done later today (about 13hours from now).
 
I just encountered something really strange: it saved the files wrong. I told it to save in /media/sd_data/Videos (the video being a TAS of Monopoly for the NES), and it instead saved it under the appdata folder as "#media#sd_data#Videos#NES Monopoly TAS in 00#35.17 by Acmim-juE533Sepbg.flv". Looks like it isn't the first time this has happened; I also found some other videos there that I have downloaded before (they must have been downloads where I assumed it just didn't work and decided to use get-flash-videos instead).


It seems this is relatively rare, but it's definitely worth investigating.
 
Last edited by a moderator:
Allright, let me check this - can you give me the url of the video you mentioned ?


other than that the new version is at least functional again ? (I mean it downloads videos where the previous one stopped working?)
 
Yeah, it's at least functional.



Code:
http://www.youtube.com/watch?v=juE533Sepbg

http://www.youtube.com/watch?v=dYXrekDfS7A

http://www.youtube.com/watch?v=Py7-Z6YsroA


Only the first one was after the latest update, but I notice a pattern: all of these have a character in the video name that gets replaced with a hash. A colon in the first two, and a pipe ("|") in the third. Makes me think some characters in the names are messing it up.
 
Last edited by a moderator:
Yeah, it's at least functional.



Code:
http://www.youtube.com/watch?v=juE533Sepbg

http://www.youtube.com/watch?v=dYXrekDfS7A

http://www.youtube.com/watch?v=Py7-Z6YsroA


Only the first one was after the latest update, but I notice a pattern: all of these have a character in the video name that gets replaced with a hash. A colon in the first two, and a pipe ("|") in the third. Makes me think some characters in the names are messing it up.

Ok let me check this out. Glad at least that it is working for downloading again (i tried before but always good to have confirmation :) )
 
Would it be possible to add an option to convert to mp3 or wav? I know at least one version of youtube-dl had an --extract-audio flag
 
Would it be possible to add an option to convert to mp3 or wav? I know at least one version of youtube-dl had an --extract-audio flag

Yes, this is possible and this can be done. I will provide an option in GUI in the next version :) I think it is very useful as well.

Wat the...


You're great :) .

If all goes well it will be done tomorrow :) But if ffmpeg is not included in the standard libraries of the Pandora there is not much I can do (as this is a required library for such a function).
 
Last edited by a moderator:
put this in your script that is referenced from your PXML.xml file:



Code:
export LD_LIBRARY_PATH="./lib:$LD_LIBRARY_PATH"

where lib is a folder in the root of your pnd folder that contains your linked libraries.
 
put this in your script that is referenced from your PXML.xml file:



Code:
export LD_LIBRARY_PATH="./lib:$LD_LIBRARY_PATH"

where lib is a folder in the root of your pnd folder that contains your linked libraries.

Thanks - so if I do this, it will look for this folder as well for the right libraries, on top of the firmware ones ?
 
Back
Top