Watch Youtube videos using Sargasso RSS feed reader
Pages: 1 2
Chris Gransden (337) 1207 posts |
There’s an updated version of Sargasso 2.08pre1 available here. The main changes from 2.07 are improved formatting of ‘Google News’ feed. To be able to play Youtube videos !Python3 and !MPlayer must be ‘seen’ by the filer. Python3 is available from PackMan if you have added the source https://packages.lessthan3.org.uk/pkg/testing.
If you already have youtube-dl installed upgrade to the latest version (2020.12.14),
To track new releases of youtube-dl add the feed https://pypi.org/rss/project/youtube-dl/releases.xml to Sargasso. To be able to launch Youtube videos from Sargasso you’ll need to add a Youtube news feed for the Youtube user or channel. To find a feed launch Otter browser or your favourite Javascript capable RISC OS browser. You can now add the news feed to Sargasso using the Channel ID. Other channels may show the user instead of the Channel ID. Once the channel/user feed has been fetched by Sargasso just click the Youtube link you want to watch. |
Doug Webb (190) 1180 posts |
Hi Chris, Thanks for the Sargasso update and instructions on getting Youtube working with it. One thing I have noticed is that it does tend to select the highest available resolution and hence runs slowly. Even if you are quick to cycle the resolutions it still leaves you with a video/sound syncing issue. YTplay allows you to select a default Mplayer resolution to start off with. Is this something that could be added? |
Chris Gransden (337) 1207 posts |
To change the default video playback to 360p edit the !Sargasso.youtubedl obey file and change best to 17. |
Doug Webb (190) 1180 posts |
Hi Chris
I changed it to 18, as per YTPlay, and it works well here with MPlayer 1.04 on my ARMX6. Once again thanks for your help and look forward to the options ability. |
jim lesurf (2082) 1438 posts |
Apologies if this is a diversion. If I should have started a different thread, please say and I’ll do so. However to a large extent I may be asking about some of the above! My interest is in being able to fetch youtube items (i.e. use youtube-dl) and if possible BBC iPlayer ones (i.e. get_iplayer). I guess the second will be irrelevant here. But is is possible given some of the above software to now simply use youtube-dl on an ARMX6 and then play it using MPlayer? If so, some info on what from the above is needed, and how to set it up would be welcome. I currently do this with Linux, but it would be good to do it with RO. And I’ve been meaning to do RO versions of some of the simple ROXapps I wrote to semi-automate some of the above and make DnD actions rather than typing into terminals. (Ahem!) All I’d need then would be for the audio to go to a USB DAC as well 8-] |
Chris Gransden (337) 1207 posts |
There’s an updated version os Sargasso (2.08pre2) available here. The main changes in this version, Now possible to set the default ‘Quality’ in Choices when playing Youtube videos. |
Andrew McCarthy (3688) 605 posts |
Thank you for the update, the new Choices… options are a nice addition. ;) Now if only I could find Leo White’s YouTube channel id. |
Norman Lawrence (3005) 172 posts |
Chris many thanks for all your hard work on this one. I have downloaded the latest python3.8 from packman but I do not seem to be able to install youtube-dl. I get the error message |
Chris Gransden (337) 1207 posts |
Some of the python modules have dependencies on shared libraries. At a minimum make sure the following are installed using PackMan. LibSSL |
Doug Webb (190) 1180 posts |
Hi Chris, Thanks for implementing the video quality setting, works ok on my ARMX6 and makes the video smoother iwhen set to 18. |
Chris Gransden (337) 1207 posts |
Hopefully in the next couple of days the next ‘Pre’ version of Sargasso will have the ability to filter feeds so posts don’t appear based on certain criteria. :-) |
Norman Lawrence (3005) 172 posts |
Thanks, youtube-dl sucessfully downloaded. Using Sargasso, and attempting to play a youtube video from Explaining Computers, the MPlayer splash screen appears for about 10 seconds bowing out leaving an empty Sargasso playlist window. Mplayer log is blank so no clues there. Has anyone else experienced this? |
John WILLIAMS (8368) 493 posts |
I can hardly wait! My excitement is palpable. I already have my criteria! |
Chris Gransden (337) 1207 posts |
There’s an updated version os Sargasso (2.08pre3) available here. The main change in this version, It now possible to exclude posts from feeds based on the author and/or title. It works globally so can be used on any feed. It’s only possible to add up to 4 exclusions at the moment. As an example. If you added a feed that searched for the word ‘Sargasso’ you could exclude posts by particular author and also title regardless of author. https://www.riscosopen.org/forum/posts/search?q=Sargasso&submit=Go |
Steve Pampling (1551) 8170 posts |
Is that an AND condition for the exclusion or an OR? |
John WILLIAMS (8368) 493 posts |
I’ve managed to get rid of one offender, but the “author” string seems to be very “specific” or literal! Would just using the ID number be easier for “author”? Would a wild-card approach make it more work-able? But, thank you! At least he/she no longer appears! Thanks! We just now need those who continue to respond to such time-wasting posts to adopt the same stratagem, and the offender(s) will effectively be “frozen out”. |
Rick Murray (539) 13840 posts |
Authentic Steve, I think OR would be more logical – filter out him OR her OR the elephant in the room… |
Steve Pampling (1551) 8170 posts |
I’m not sure it works quite as some expected (John at least) when you consider he’s looking for a wildcard and also wondering whether the ID alone would be good for “author” when the latter brings in the difficulty of detecting the difference between 368 and 8368 unless you use the () and what is the ID anyway? Proper wild carding would likely require a working Regular Expression support. POSIX style probably best. As for the elephant in the room – I know I’ve put on weight since restarting work but at home but really… |
John WILLIAMS (8368) 493 posts |
In case anyone else uses Druck’s WindOpen module to automate updating of RSS etcetera, the addition of the new “Exclude” menu item opens that instead of updating the feed – so (obviously, in retrospect) the menu item number for WindOpen WO_MenuSelect will require incrementing to achieve the desired result! Taken me a few days to work that one out and remember how my script worked! |
David J. Ruck (33) 1635 posts |
Nice to know someone is using it John. I did consider making the command match names in addition to selection numbers so it would cope with new entries being inserted, but the presence of shortcut codes made it less than obvious what the string should be. |
Chris Gransden (337) 1207 posts |
There’s an updated version of Sargasso 2.08pre4 available here. Changes in this version, Linked with libssl 1.1.1k |
Chris Gransden (337) 1207 posts |
There’s an updated version of Sargasso 2.08pre5 available here. Changes in this version. Choices option to enable/disable display of the description in the main feed window. (defaults to off) |
Rick Murray (539) 13840 posts |
If you want to make John Williams very happy, could you please add support for Because Thanks! |
Chris Gransden (337) 1207 posts |
Eash forum has a recent posts rss feed. So just add the feeds you are interested in. http://www.riscosopen.org/forum/forums/1/posts.rss Latest version of Sargasso (2.08pre6) is here. The only change in this version is the exclude filter stopped working in certain circumstances. Then use the exclude filter to ignore posts that you are not interested in by author or title. |
John WILLIAMS (8368) 493 posts |
This might be a good place to suggest that feeds listed in the choices Feeds file can be temporarily “commented-out” using a leading pipe and/or hash character. This would allow one to retain the RSS feed link data whilst temporarily suspending its collection. At the moment it tries to load the data failing with a “URL using bad/illegal format or missing URL” error display. Yes, I know we shouldn’t really be directly editing choices files, but it would be a half-way house towards a legitimate UI option to suspend a feed temporarily by getting Sargasso to respect some sort of “comment” marker! This all seems very relevant to the current “Forum quality” thread as well! |
Pages: 1 2