Opened 16 years ago
Closed 14 years ago
Last modified 14 years ago
#5589 closed enhancement (invalid)
New plugin MythTube (YouTube plugin)
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | youtube |
Cc: | Ticket locked: | yes |
Description
New plugin to search and view youtube video, based on mythnews plugin.
now you can search for video on youtube website and see it previus download, function like mythnews but you can search videos.
Attachments (26)
Change History (72)
Changed 16 years ago by
Attachment: | mythtube.tar.gz added |
---|
Changed 16 years ago by
Attachment: | mythtube-configopts.patch.txt added |
---|
Configure Patch for MythTube?
comment:1 Changed 16 years ago by
Added a little patch for configure of mythplugins. untar the archive in your mythplugins directory and patch with included patch. ./configure will then obey --enable-mythtube and --disable-mythtube and build it as part of plugins compile.
Changed 16 years ago by
Attachment: | library.xml.mythtube.patch added |
---|
Patch for MythFrontend's library.xml to add MythTube? to the menus
comment:2 Changed 16 years ago by
Nice job to the author of this. I have uploaded a modified version. It contains some mostly cosmetic fixes. Firstly, it removes the MythNews? background. Secondly, the widescreen version of the tube-ui.xml file has been modified to display properly on 16:9 displays (as opposed to just being a copy of the 4:3 version). I updated the graphic to look a little nicer.
So, apply the library.xml.patch patch to mythTV itself when compiling. Apply the configure patch to mythplugins, and untar the mythtube.2.tar.gz in your mythplugins directory. ./configure mythplugins with --enable-mythtube, compile as normal, install, and "Watch YouTube? Videos" should now be present under the Media Library screen.
comment:3 Changed 16 years ago by
Another version, and now I promise to stop for the night :)
This version corrects a problem in previous versions with YouTube? and redirects. YouTube? uses other servers at times of high traffic and this utterly broke prior versions of the plugin because it handled the redirect URLs improperly. This is corrected. I also removed all vestiges of references to MythNews? in the code.
I also subtly changed the downloads so that instead of downloading the low quality FLV version, it not downloads the h.264 in MP4 container when available. The downloads are much higher quality (and, of course, take a bit longer to download) and much more appealing looking on a large screen.
comment:4 Changed 16 years ago by
Ok, good work. Now I work in three way.
1.- Change video search code to use external script (perl or python) like mythvideo and add more video sites. What's your opinion?? 2.- Add two PopScreen?, info and menu, to see more video info and more option. 3.- Add mythtube_config to configure some options.
Why you delete news background? Don't like you? :)
Soon I add mythtube entry on wiki plugin-unofficial
comment:6 Changed 16 years ago by
Ok, this is possible. MythTube? is "alfa" release and i add support to stream soon. I think add this function on configure, you will select if you prefer use stream or download. Without I code the scripts system to get website video data before.
If anyone want code any thing about MythTube?, please tell me and will be welcome. :)
comment:7 Changed 16 years ago by
I was thinking of maybe a menu screen with the channel logos on for each channel, for example apple movie trailers, you tube, revision 3,
See mock up: http://i110.photobucket.com/albums/n106/Dubstar_04/vod.png
Let me know what you think.
comment:8 Changed 16 years ago by
Ok is good idea, first you select "channel" and then appear MythTube? screen whit search tool... is good. In fist i think add a combo box between search box and search button whit different channel but your idea I think is more usability and eye-candy.
comment:9 Changed 16 years ago by
compile error when mythtv in /opt/mythtv for example. Themes files are also copied in /usr/share/mythtv...
comment:10 Changed 16 years ago by
New release, changes:
- Now MythTube? use external script to search and get video data
- 2 script, youtube.pl (search on youtube) and youtube2.pl (idem youtube.pl but order by published date, is a test)
- add a selector list to script
TODO:
- clean old code
- eliminate youtube patch to get correct url and apply this from script (i need know how can get the redirecction url for example from www.youtube.com/v/PC4HhI0bK4c redirect and redirection url content t parameter and I need this parameter to get real video direction)
- create a new screen (view Dubstar_04 comment) to select site but i don't know how do it... :) i need investigate.
Now only have 2 script, please code yours script to other sites and submit to this ticket, you can see my script to make correct output.
comment:11 Changed 16 years ago by
NEW RELEASE:
- Add popupmenu.
- Add video cache, now you don't need download it if video is on cache (cache only 4 video).
- Add save video function, now you can save video on a directory (now only config dir).
- Add stream view function, now you can see video without download it.
- Change youtube.pl script.
- Add more video info suport (duration, view count, date published).
- Fixed some bug.
Remember, now only have 2 script, please code yours script to other sites and submit to this ticket, you can see my script to make correct output.
Note: check new script because change output system
comment:14 Changed 16 years ago by
Not running recent SVN, so I can't test, but is this plugin smart enough to differentiate and choose between the standard and high-quality versions, if a high quality version is available for the video?
comment:15 Changed 16 years ago by
Yes, youtube.pl script provide the url high-quality to mythtube plugin if this exist on mp4 format.
What's the problem with mythtube, because you can't running it??
comment:17 Changed 16 years ago by
No. And Trac isn't a forum, ask questions like that in IRC or on the users list please.
comment:18 Changed 16 years ago by
Alvaro, I noticed that in your newer versions with the external script, that you are downloading the video from es.youtube.com. You probably want to change this to www.youtube.com. es works okay for you in Spain, but is much slower for us elsewhere. If you just use www.youtube.com, then most/all people will be redirected to their closest YouTube? servers. I can patch and re-post here, but you may get to it before I have time to do so. Also, I see that you worked from another script as a starting point for YouTube?.pl, you may want to clear out the many many commented out lines to reduce file size and clean up the code a bit.
comment:19 Changed 16 years ago by
New Release:
This is a complete new version, now change more thinks.
- Code: Refactor some code
- Code: Restructure classes, create a new class struct
- Code: Create generic class for channel interfaces (Screens) and channels
- Add support for feed channels
- Suport RSS 2.0, itunes and yahoo feeds
- Add support for database
- Add channel select screen, now you can have more channels and you have a Search channel, the old MythTube? plugin
- Edit channel support
- Fixed some bug.
The new concept is a feed plugin only for video site and with search capacity, I propose a plugin similar to Miro (old democracy player). Please send me by email, wiki http://www.mythtv.org/wiki/index.php/MythTube or mythdev-list your purpose, ideas or opinions, please don't use this track how a forum.
Please report all bugs.
TODO:
- Support multiple download
- Make a configure menu
- New concept channel similar to feedchannel called scriptchannel, work how a feedchannel but use external script for site that no provide feeds
- Mark watch programs
- AutoRetrieve? and download support
I hope you like
comment:20 Changed 16 years ago by
I forget, please send me video site feed to create a xml archive and please check the correct function on plugin, if has some error whit parsing feed or other type erros, please report me.
Thanks
Changed 16 years ago by
Attachment: | channel-list.xml.tar.gz added |
---|
this is a list of channels please update it, thanks
Changed 16 years ago by
Attachment: | mythtube.21082008.tar.gz added |
---|
Fixes to Mythtube, cosmetic and functional
comment:21 Changed 16 years ago by
Alvaro, tested and working really nicely. I've uploaded a fixed copy. A couple of things both visual and functional. Fixed a reference to your home directory that was hard coded in there, and updated the default-wide theme to fit the screen properly and to be overscan-safe. You may not want to have sitelist, videolist, and the menu inherit from basebuttonlist2. On some themes (like glass-wide and blootube-wide) this causes the selection boxes to go off the screen.
Also, the channelselected window was not overscan-safe. I fixed this in the -wide theme, but didn't spend any time on the default theme. You may want to move the channel icon and title over 50 and down 50 more. At 10,10 it also gets in the way of the title menu of several themes like glass-wide. Again, default-wide/tube-ui.xml is fixed, but you will need to take a look at default/tube-ui.xml.
My address is at gmail if you want any help on this. Great job!
Changed 16 years ago by
Attachment: | mythtube.tar.3.gz added |
---|
fixed a crash with no url response and other minor
comment:22 Changed 16 years ago by
New release
- Added a channel.xml list with video channels
- Added configurator to select channels from channel list on channel.xml
- Fixed bug, crashed program when exit while download images
- Added info download images and progress bar
Is necessary add config option on xml menu archive.
When have time I add a script
comment:23 Changed 16 years ago by
Cojonuo,
Great work with this plugin, its amazing.
I was wondering if you could take a look at adding support for these feeds. They currently fail to fetch the artwork for they shows.
http://revision3.com/tekzilla/feed/xvid-large/ http://revision3.com/systm/feed/xvid-large/
Thanks again,
Dubstar_04
Changed 15 years ago by
Attachment: | mythtube.6.tar.gz added |
---|
Update of MythTube? to compile against current trunk (Header changes)
Changed 15 years ago by
Attachment: | mythtube.7.tar.gz added |
---|
New Mythtube, works with current trunk (post mythlistbutton.h removal)
Changed 15 years ago by
Attachment: | mythtube.8.tar.gz added |
---|
Remove all those .svn directories, d'oh!
Changed 15 years ago by
Attachment: | mythtube.9.tar.gz added |
---|
Fixes infinite loop on select, disables "Stream Video," adds new UI
comment:24 Changed 15 years ago by
Fixed a few painful bugs in this new version. I've disabled the menu item "Stream Video" as it just doesn't work right now. Throws an error message every time.
More importantly, There was a particularly nasty bug where if you selected a stream with "enter" instead of pressing M then "Save," the video wouldn't download and mythfrontend would go into an infinite loop and max out the processor. So that's fixed.
Finally, new... erm... let's call it "AlbumFlow?" style UI for normal and wide. I know that the Posters aren't loading right now, I'll try to get that fixed tonight or tomorrow once I can get some help re: MythUI.
comment:25 Changed 15 years ago by
Thanks to Anduin (and no thanks to myself) the images in the RSS Feeds are fixed. Huge, huge, huge thanks to him. Youtube searching appears to be broken right now, I strongly recommend against using that part. I suspect it's beyond my meager abilities but I will take a whack at it in the next few days.
Changed 15 years ago by
Attachment: | mythtube.11.tar.gz added |
---|
The new release with MiroGuide? Support
Changed 15 years ago by
Attachment: | mythtube.11.tar.2.gz added |
---|
New release, MiroGuide? support and internationalization
comment:26 Changed 15 years ago by
mythtube.11.tar.2.gz is correct, mythtube.11.tar.gz NO correct.
New on release:
- Enable stream and add cache usage
- MiroGuide? support on menu to explore and add channels
- Internationalization, can find on i18n, please edit your contry file and send me by email or attach to this ticket.
Note: MiroGuide? support is some unstable please if you have errors send me, thanks.
comment:27 Changed 15 years ago by
This is a new version of mythtube with a few important fixes. It updates all patches for configure and library.xml to match new versions of both. I have rewritten the youtube.pl youtube download parsing. Due to changes made at YouTube? in late October, this had been broken for a while. The new version of the script parses the playback page itself so it should be a lot more change-resistant. Also, instead of downloading to anonymous temp files, downloaded files are now saved in ~/.mythtv/MythTube/TitleOfVideo? to make for easy viewing/moving/whatever.
RSS and Miro continue to work as normal. I've done some work on a new UI but it's not there yet. I also may have some exciting search scripts coming, but that will depend on time.
comment:28 Changed 15 years ago by
Sorry, also meant to say I removed the youtube2.pl. It was broken too and was confusing and didn't return very good results. If someone feels like making it make sense to me and re-adding it, okay.
Changed 15 years ago by
Attachment: | mythtube.13.tar.gz added |
---|
MythTube? UI improvements, a few fixes
comment:29 Changed 15 years ago by
New version adds a new UI for the YouTube? search screen in wide themes. This update is available for -wide themes *only* until I get the time to edit the non-wide theme. A screenshot is here:
http://www.fecitfacta.com/MythTube-UI-1.png
This closely matches the forthcoming changes to the "Watch Recordings" screen, for consistency. I'll probably convert the Miro Search screen to a similar UI when I have a chance.
Minor tweaks in the code to allow for something in this theme change, and one fix to the youtube script (removed dependency on WWW::Mechanize).
comment:30 Changed 15 years ago by
Another new version. Corrects caching behavior in Search window and in feeds. Now if files are previously downloaded, they will play locally. Instead of being downloaded to the ~/.mythtv/MythTube directory, feed downloads are downloaded to their feeds directory with a legible English name, (eg ~/.mythtv/MythTube/Systm/DIY Halloween Projects) A couple of other fixes I can't remember. I will probably look at the RSS parsing a little bit next to see if I can get more of the episode thumbs loading properly.
comment:31 Changed 15 years ago by
For clarity's sake, here is the build process for MythTube?:
Untar the latest tarball in the mythplugins source dir:
cd /path/to/mythplugins tar xvzf mythtube.14.tar.gz
Patch configure with the patch included:
patch configure mythtube/contrib/configure.patch
Patch your library.xml with the included patch:
patch /usr/share/mythtv/library.xml mythtube/contrib/library.xml
Run configure as normal (mythtube should be automatically enabled, or you can use --enable-mythtube)
./configure --prefix=/usr
make
make install
comment:32 Changed 15 years ago by
Looks like it's using deprecated setData and getData and won't compile with latest SVN:
channelscreen.cpp:219: error: 'class MythUIButtonListItem' has no member named 'setData' channelscreen.cpp: In member function `void ChannelScreen::viewVideo(MythUIButtonListItem*)': channelscreen.cpp:231: error: 'class MythUIButtonListItem' has no member named 'getData' channelscreen.cpp: In member function `void ChannelScreen::updateInfoView(MythUIButtonListItem*)': channelscreen.cpp:286: error: 'class MythUIButtonListItem' has no member named 'getData' channelscreen.cpp: In member function `void ChannelScreen::OpenBrowser()': channelscreen.cpp:378: error: 'class MythUIButtonListItem' has no member named 'getData' make[2]: *** [channelscreen.o] Error 1 make[1]: *** [sub-mythtube-make_default] Error 2 make: *** [sub-mythtube-make_default] Error 2
comment:33 Changed 15 years ago by
I think this is a strict aliasing issue -has this been resolved now with head?
comment:34 Changed 15 years ago by
Nope, still getting it:
channelscreen.cpp: In member function ‘void ChannelScreen::showResult(FeedChannel*)’: channelscreen.cpp:190: warning: ‘void MythUIImage::SetImage(MythImage*)’ is deprecated (declared at /usr/include/mythtv/libmythui/mythuiimage.h:30) channelscreen.cpp:219: error: ‘class MythUIButtonListItem’ has no member named ‘setData’ channelscreen.cpp: In member function ‘void ChannelScreen::viewVideo(MythUIButtonListItem*)’: channelscreen.cpp:231: error: ‘class MythUIButtonListItem’ has no member named ‘getData’ channelscreen.cpp: In member function ‘void ChannelScreen::updateInfoView(MythUIButtonListItem*)’: channelscreen.cpp:286: error: ‘class MythUIButtonListItem’ has no member named ‘getData’ channelscreen.cpp: In member function ‘void ChannelScreen::OpenBrowser()’: channelscreen.cpp:378: error: ‘class MythUIButtonListItem’ has no member named ‘getData’ make[2]: *** [channelscreen.o] Fout 1
comment:35 follow-up: 36 Changed 15 years ago by
You need to install a newer version of Myth first. setData() and getData() were removed 7 weeks ago.
comment:36 Changed 15 years ago by
Replying to paulh:
You need to install a newer version of Myth first. setData() and getData() were removed 7 weeks ago.
Actually forget that it's the other way around the patch needs updating to work with current trunk. Doh!
comment:37 Changed 15 years ago by
I cannot compile.. Any suggestions? Currently using: mythtube.15.tar.gz SVN Mythtv
In file included from main.cpp:39: mythtubeconfig.h:46: error: ISO C++ forbids declaration of ‘Q3PtrList’ with no type mythtubeconfig.h:46: error: expected ‘;’ before ‘<’ token mythtubeconfig.h:50: error: ‘ChannelList?’ does not name a type mythtubeconfig.h:53: error: ISO C++ forbids declaration of ‘Q3PtrList’ with no type mythtubeconfig.h:53: error: expected ‘;’ before ‘<’ token mythtubeconfig.h:65: error: ISO C++ forbids declaration of ‘MythUIButtonList’ with no type mythtubeconfig.h:65: error: expected ‘;’ before ‘*’ token mythtubeconfig.h:66: error: ISO C++ forbids declaration of ‘MythUIButtonList’ with no type mythtubeconfig.h:66: error: expected ‘;’ before ‘*’ token mythtubeconfig.h:68: error: ISO C++ forbids declaration of ‘CategoryList?’ with no type mythtubeconfig.h:68: error: expected ‘;’ before ‘*’ token mythtubeconfig.h:72: error: ‘MythUIButtonListItem’ has not been declared mythtubeconfig.h:73: error: ‘MythUIButtonListItem’ has not been declared make[2]: * [main.o] Error 1 make[2]: Leaving directory `/myth/backup/src/myth/mythtv-release-0-21-fixes/mythplugins/mythtube/mythtube' make[1]: * [sub-mythtube] Error 2 make[1]: Leaving directory `/myth/backup/src/myth/mythtv-release-0-21-fixes/mythplugins/mythtube' make: * [sub-mythtube] Error 2
comment:38 Changed 15 years ago by
Is this going to be looked at for a potential release along with 0.22?
comment:39 Changed 15 years ago by
This seems to be a QT problem. I am running
x11-libs/qt
Latest version available: 4.5.2
Compilation fails on:
LANG=C make cd mythtube/ && make -f Makefile make[1]: Entering directory `/home/root/mythplugins/mythtube' cd mythtube/ && make -f Makefile make[2]: Entering directory `/home/root/mythplugins/mythtube/mythtube' g++ -c -pipe -march=i686 -g -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -DSTDC_CONSTANT_MACROS -g -Wall -W -D_REENTRANT -DPIC -fPIC -D_GNU_SOURCE -DPREFIX="/usr" -D_FILE_OFFSET_BITS=64 -DQT_PLUGIN -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_SQL_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4/Qt3Support -I/usr/include/qt4 -I/usr/include -I/usr/include -I/usr/include/mythtv -I/usr/include/mythtv/libmythdb -I/usr/include/mythtv/libmythui -I/usr/include/mythtv/libmyth -I/usr/include/mythtv -I/usr/X11R6/include -I. -o channelscreen.o channelscreen.cpp /usr/include/qt4/QtCore/qvariant.h: In member function 'void ChannelScreen::showResult(FeedChannel?*)': /usr/include/qt4/QtCore/qvariant.h:413: error: 'QVariant::QVariant(void*)' is private channelscreen.cpp:218: error: within this context make[2]: * [channelscreen.o] Error 1 make[2]: Leaving directory `/home/root/mythplugins/mythtube/mythtube' make[1]: * [sub-mythtube-make_default] Error 2 make[1]: Leaving directory `/home/root/mythplugins/mythtube' make: * [sub-mythtube-make_default] Error 2
comment:40 follow-up: 41 Changed 15 years ago by
You can no longer use void pointers with QVariant() but that's not a huge deal, I'll maybe find time to take a look and fix that, but there is no point unless someone is willing to take responsibility for continued development and maintenance of this plugin.
comment:41 Changed 15 years ago by
I intend to do some work with this plugin once 0.22 is released. I dont have a development machine at the moment so I haven't been running trunk.
My development skills still arent very strong however I am very keen on using and improving this plugin with iplayer support etc.
I would very much appreciate it if you could get this compiling and running with trunk even if its not fully functional.
Cheers,
Dubstar_04
comment:42 Changed 15 years ago by
Hello guys, I first apologize because the mythtube plugin developer discontinued. Now I have planned continue when 0.22 is released. I stop the develop by 4 reasons:
1.- no have many free time. 2.- whith the continuos changes on 0.22 develop code I need do many changes on my code (and migrate to QT4). 3.- now on my contrie (spain) some video sites interesting for me have been closed. 4.- I lost my media center and need make other.
In future I will be continue the develop of this plugin because I think it is interesting. Also I add the promissed features. Now if any people want continue development it, they will be welcome.
Thanks for yours opinions and suggest.
Alvaro Gonzalez Sola
comment:43 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Alvaro, please open a new ticket with the updated patches when you restart work.
comment:44 Changed 14 years ago by
Ok, when I finish my student proyect I restart work. Probabily change the name of the plugin
comment:45 Changed 14 years ago by
Cojonuo,
Have you had a chance to bring this up to date with mythtv 0.22?
comment:46 Changed 14 years ago by
Ticket locked: | set |
---|
Anon - Trac isn't a forum or a private communication channel.
plugin mythtube