Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467110 - net-misc/mediatomb-0.12.1-r5 fails to retrieve YouTube videos
Summary: net-misc/mediatomb-0.12.1-r5 fails to retrieve YouTube videos
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Whyman (thev00d00) (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-04-24 19:40 UTC by Bas Nedermeijer
Modified: 2013-12-17 23:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to enable youtube support in mediatomb using youtube-dl (mediatomb-youtube.patch,2.71 KB, patch)
2013-04-24 19:47 UTC, Bas Nedermeijer
Details | Diff
Patch to enable youtube support in mediatomb using youtube-dl (mediatomb-youtube_a.patch,2.55 KB, patch)
2013-05-13 16:52 UTC, Bas Nedermeijer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bas Nedermeijer 2013-04-24 19:40:52 UTC
Mediatomb does not work anymore with youtube videos. Probably because the website has been changed.

Reproducible: Always

Steps to Reproduce:
1. Configure youtube settings in mediatomb
2. Try to play video using mediatomb / youtube
Actual Results:  
The video does not play

Expected Results:  
The video does play
Comment 1 Bas Nedermeijer 2013-04-24 19:46:38 UTC
I have made a small patch to enable youtube support again.
Maybe this can be enabled using a use-flag?


The original code does not seem to work anymore.

I have commented-out all the original code, and instead
replaced it with a call/exec to youtube-dl (this is a separate/stand-alone python script).

Available at http://rg3.github.io/youtube-dl/

The current code works on a/my samsung TV. I have not tested it further on other devices.
(I needed a quick fix, because I wanted to watch some video's.  :) )

I thought I would share the results.


Regards, Bas Nedermeijer
Comment 2 Bas Nedermeijer 2013-04-24 19:47:22 UTC
Created attachment 346508 [details, diff]
Patch to enable youtube support in mediatomb using youtube-dl
Comment 3 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2013-05-13 12:40:28 UTC
The patch seems fairly sensbile but it needs some clean up: for instance why did you remove the existing comments?
Comment 4 Bas Nedermeijer 2013-05-13 13:40:53 UTC
> The patch seems fairly sensbile but it needs some clean up: for instance why did you remove the existing comments?

I am not sure why they were removed (it was btw, in the code added by me). I did copy-paste the modifications a couple of times (during testing/compiling/modfiying).


(I think something went wrong when creating the diff-file. Because some of the lines in the patch-file came from a previous version of my modifications.)

I can make a new patch, when I am back at home, to avoid further confusion.
Comment 5 Bas Nedermeijer 2013-05-13 16:52:48 UTC
Created attachment 348178 [details, diff]
Patch to enable youtube support in mediatomb using youtube-dl
Comment 6 Bas Nedermeijer 2013-05-13 16:54:09 UTC
I have added again a patch-file, this time against the correct sources.
Comment 7 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2013-12-17 23:41:39 UTC
I've just committed mediatomb-0.12.1-r7 to the tree, its got the youtube-dl patch applied.

If you could test and reopen if anything is not working that would be great.