aiostreams vv1.7.7 (2023-12-20) - Developed by George Sokianos
Traceback (most recent call last): File "DH1:Video/aiostreams/youtube.py", line 490, in <module> main(sys.argv[1:]) File "DH1:Video/aiostreams/youtube.py", line 464, in main print ("Title: %s" % (cmnHandler.uniStrip(response['title']))) KeyError: 'title'
aiostreams vv1.7.7 (2023-12-20) - Developed by George Sokianos
Traceback (most recent call last): File "DH1:Video/aiostreams/youtube.py", line 490, in <module> main(sys.argv[1:]) File "DH1:Video/aiostreams/youtube.py", line 315, in main video = helpers.getVideoType(args.url) File "DH1:Video/aiostreams/youtube.py", line 232, in getVideoType types = self.parseURL(url) File "DH1:Video/aiostreams/youtube.py", line 229, in parseURL return _url_re.match(url).groupdict() AttributeError: 'NoneType' object has no attribute 'groupdict'
Aiostream seems to needs some code to process youtube url before.
In the meantime, I've updated a little bit my script to use AIOStreams from browsers directly and add a workaround to process the youtu.be url type. See my post in this thread >here<
K-L's link shows to me "This video isn't available anymore" message. I do not know if that redirects somewhere else based on the country of the visitor, but it doesn't seem to exist for me.
With the latest version 1.7.7 I removed the check of the domain and subdomain, but it still needs to have the "watch?v=" part in the url. If that doesn't exist, it will fail. I think that this is the default urls YT provides.
Quote:
Aiostream seems to needs some code to process youtube url before.
In my little script to call aiostreams, I simply process the url by replacing a part of it like this so it contains the string "/watch?v=" and works with aiostreams :
#URL transformation for youtu.be
result = url.rfind('youtu.be/')
if (result != -1):
url = url.replace('youtu.be/', 'www.youtube.com/watch?v=')
@Petrol The next version will have a fix for this kind of urls, supporting the "youtu.be" as well.
@khayoz My pleasure. Hope you have also seen the accompanied site at https://aiostreams.amiga-projects.net. For me, it works so good as a GUI for Twitch and YouTube.
My pleasure. Hope you have also seen the accompanied site at https://aiostreams.amiga-projects.net. For me, it works so good as a GUI for Twitch and YouTube.
I have already tested it and it actually works very well and not only via YT.rexx, but also clicking directly and accessing the YouTube streams is very fast, even on my machine.
And the great thing is that the YouTube videos reproduce the native GUI of AmigaOs4.1. Personally, I think this alternative to the original YouTube is really great, and the loading times are also shorter.
MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne A1222plus AmigaOs4.1 FE
@K-L Have in mind that some videos might not be available on 720p To check the available formats for a video you can use the -x argument. This will give a table of the available formats and resolutions. Somthing like: