Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

synology dsm5 updated fails #2582

Closed
FernandoMiguel opened this issue Mar 18, 2014 · 9 comments
Closed

synology dsm5 updated fails #2582

FernandoMiguel opened this issue Mar 18, 2014 · 9 comments

Comments

@FernandoMiguel
Copy link

@FernandoMiguel FernandoMiguel commented Mar 18, 2014

I've already reported this upstream at http://forum.synology.com/enu/viewtopic.php?f=10&t=82973
but given their past time to reply, I'm not very helpful.
I've recently upgraded my Synology NAS firmware (called DSM) to the final version of DSM5.
Yesterday I was logging another stuff in the CLI, and noticed youtube-dl was in use.
/volume1/homes/fernando # ps w | grep -i youtu
4881 http 4224 S < sh -c /usr/bin/python /var/packages/DownloadStation/target/ui/hostscript/hosts/youtube/youtube-dl -g --ge
4882 http 18956 R < /usr/bin/python /var/packages/DownloadStation/target/ui/hostscript/hosts/youtube/youtube-dl -g --get-file
5042 root 4228 S grep -i youtu

I checked the version installed and it was a somewhat old one:
/var/packages/DownloadStation/target/ui/hostscript/hosts/youtube/youtube-dl --version
2014.01.21

So I upgraded it
/var/packages/DownloadStation/target/ui/hostscript/hosts/youtube/youtube-dl -U
2014.03.17

I can download youtube videos just fine using the CLI/SSH, but downloadstation (Synology web UI for downloads) now just fails to download.

Can any of you guys help me debug it further?

thanks in advance.

@FernandoMiguel
Copy link
Author

@FernandoMiguel FernandoMiguel commented Mar 18, 2014

in case python version is helpful
/usr/bin/python --version
Python 2.7.3

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 18, 2014

If the problem doesn't happen when using youtube-dl with the command line, the problem may be in downloadstation, I don't think we can help with that.

@FernandoMiguel
Copy link
Author

@FernandoMiguel FernandoMiguel commented Mar 18, 2014

@jaimeMF further help to debug it, or intercept would be ok.
even proper way to downgrade after doing -U, could help me test again

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 18, 2014

Just follow the download instructions replacing the version with the one you need and changing the destination.
I'm closing the issue. Maybe we have made some change that breaks downloadstation, but without knowing how it uses youtube-dl we can't help.

@jaimeMF jaimeMF closed this Mar 18, 2014
@FernandoMiguel
Copy link
Author

@FernandoMiguel FernandoMiguel commented Mar 18, 2014

@jaimeMF that's exactly what I'm asking help for, for you to tell me where to look to see how it works...
i see a youtube.php file in that dir, but it looks like binary code

@phihag
Copy link
Contributor

@phihag phihag commented Mar 18, 2014

@FernandoMiguel Sorry, youtube-dl is a community project, developed and supported by volunteers. I apologize, but we cannot possibly debug a problem with a closed-source commercial project. Even if we would have the time and interest to debug the DSM problem (instead of all of the youtube-dl problems), we still would have to find and buy the hardware, wouldn't we?

@phihag
Copy link
Contributor

@phihag phihag commented Mar 18, 2014

I'll tell you what: If you can (legally) extract the code that's calling youtube-dl and post it here, we may take a look and point out potential problems.

@FernandoMiguel
Copy link
Author

@FernandoMiguel FernandoMiguel commented Mar 18, 2014

@phihag i totally understand. i'll give it a go!
thanks in advance

@FernandoMiguel
Copy link
Author

@FernandoMiguel FernandoMiguel commented Mar 19, 2014

I've uninstalled Download Station, and then installed it manually via package.
you can obtain the file here, in case you want to look at it, and how it uses ytdl
http://global.download.synology.com/download/spk/DownloadStation/3.4-2555/

for future reference, the version that comes bundled with 3.4-2555 is
NAS> /var/packages/DownloadStation/target/ui/hostscript/hosts/youtube/youtube-dl --version
2014.01.23.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.