Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
SVT Play is broken #26428
SVT Play is broken #26428
Comments
|
|
I can confirm this, the latest version of youtube-dl, and started happening just the last 24 hours. |
|
In svt_id = self._search_regex(
r'<video[^>]+data-video-id=["\']([\da-zA-Z-]+)',
webpage, 'video id')by svt_id = self._search_regex(
(r'<video[^>]+data-video-id=["\']([\da-zA-Z-]+)',
r'"content":\{"id":"([\da-zA-Z-]+)'),
webpage, 'video id') |
How would I go about doing this if I'm using brew in Terminal on Mac OS? |
|
Thank you for the patch, Surkal @ijbh: it's not that difficult. Just download the source code, edit the file as Surkal said and call "make" from the main directory of the youtube-dl source. Copy the new youtube-dl to /usr/local/bin and you're done. I only had to install pandoc using 'brew install pandoc' before make run through. |
|
Hm, I will try but I don't really understand any of what you just said. Will it be in vain waiting for youtube-dl to be updated in brew to reflect these new changes? |
|
@beteetzen Can I ask you two questions?
|
|
I added a pull request for the above fix. Please someone with knowhow about this, take a look at it. |
|
@ijbh: In the Terminal you just go into that directory This will create a new executable file youtube-dl in that directory which you'll have to copy to /usr/local/bin But I think it will not take too long until the fix will be released if I understand Håkan right. |
|
Sorry for not actually contributing; I just want to say thanks to anyone who works on adding a fix to the DL core. Eagerly waiting for the SVT fix (as well as a NRK regionblock fix). |
|
@beteetzen That's great. But I like learning how to do this :) I think I understand your explanation! @TheNorwegian NRK has been a problem for long no? It stopped working for me months ago :( |
|
@ijbh The last successfull playlist download from NRK that I did was on August 4th (regionblocked content). I think sometime between mid May and July, single episodes started to fail. Now in mid and late August, even playlists fail. However, nonregionblocked content still works for me (when downloading from Sweden, I have not tried downloading from a Norwegian computer.) |
|
@beteetzen Thanks for your explanation. It worked :) So what you said about Pandoc is just optional? I didn't seem to need it. |
|
I can confirm that the fix from Surkal is working, thanks a lot! |
|
Is there a fix for windows? |
|
@Tileann If you can't wait for an update you can always clone youtube-dl (or download it),
|
|
@Sopor All I have is a stand alone youtube-dl.exe file. |
|
@Tileann I understand, but i explained in my previous comment how you should do it. I assume you have some experience in how to use a command prompt when you are using youtube-dl? The only difference is how you run it. The above download link will download the master branch and not youtube-dl.exe |
Works splendid, |
|
Hi! I'm on a PC with Win10, I have Latest Python 3.8.5 installed, and it's in the System PATH. I have picked up the youtube-dl-master.zip and unzipped it. To what directory do I open a CMD Window (as Admin?!), and How do I then compile (what are the Command Line) a new /Cheers! |
|
@Minherre Open the cmd window in the youtube_dl folder where you find Type in
It you do, it works. You need to copy |
|
@Sopor: Thank you, but that far I came myself, and it works perfectly well with SVTPLAY.SE now again. But what I asked for was HOW to create the actual youtube-dl.EXE file ?! |
|
@Minherre Why can't you run it with |
|
Sopor> @Minherre Why can't you run it with @Sopor: I can't use your Commandline since that is so Primitive! Instead I'm using Youtube-DLG on top of Youtube-dl.exe. "A cross platform front-end GUI of the popular youtube-dl written in wxPython." Pick it up and read more at: https://github.com/MrS0m30n3/youtube-dl-gui Just paste URL after URL into the top windows, then click ADD, and then GO, and it'll pick up URL after URL, three at the time. If one wants Subs, just use >>Options>Download set on All Available Subs. And then also >>Options>Extra and there you add: --convert-subs srt But this easy way doesn't work if one has to use commandline Python commands. So unfortunately Youtube-DLG can't be used for certain sites (like Svtplay) until a new Youtube-dl.exe is compiled. |
@Sopor: How nice of you to offer a download of a Trojan-INFECTED version of Youtube-dl.exe ... ! https://howtofix.guide/trojanwin32-wacatac-dml/ The regular Youtube-dl.exe (2020.7.28.0) does not trigger any Anti-Virus programs, but your download triggers them all... Always check all downloaded files at https://virusdesk.kaspersky.com/ and also at https://www.virustotal.com/#/home/upload But now Sunday Sept 6 there's a NEW Youtube-dl.exe out, that does NOT Trigger a Trojan Warning, have a look at https://github.com/ytdl-org/youtube-dl/releases/tag/2020.09.06 Thank you, dstftw !!! |
|
Trojan infected?! I have created the file by myself and i have no trojan in my system. It is of course a false positive. As you can see here some of them will trigger on the file https://www.virustotal.com/gui/file/a8d717e336c7197f1e998f4fddaa21f02caa04f0c8334156bc5b8ae7d4c22bfa/detection I have used pyinstaller to create it and it seems to be an issue when using pyinstaller @dstftw What do you use to create youtube-dl.exe, py2exe? |
|
Did anyone else just experience Svtplay stop working again? As if they changed their video path again? (or maybe went back?) |
|
ijbh, I experienced that SVTplay worked with YT-DLG yesterday - but not the day before and not today. (Almost as if the functioning .exe was a glitch yesterday, and now back to "normal non functioning" status.) |
|
@TheNorwegian For me it has worked without interruption since the above fix two weeks ago. So I think something changed now. |
|
Since I use Youtube-DLG only, the above fix was not relevant for me. I am not sure I would be able to apply the fix. |
|
Here's a quick fix. In svt_id = self._search_regex(
(r'<video[^>]+data-video-id=["\']([\da-zA-Z-]+)',
r'"content"\s*:\s*{.*?"id"\s*:\s*"([\da-zA-Z-]+)"'),
webpage, 'video id')by svt_id = self._search_regex(
(r'<video[^>]+data-video-id=["\']([\da-zA-Z-]+)',
r'"content"\s*:\s*{.*?"id"\s*:\s*"([\da-zA-Z-]+)"',
r'"videoSvtId"\s*:\s*"([\da-zA-Z-]+)"'),
webpage, 'video id') |
|
@Surkal Awesome. Thank you! |
|
Where would I find extractor/svt.py ? |
I think it should be line 227! Seems to be working now. Thank you! |
|
This fix works! Can someone do a PR to be merged into master? |
|
With youtube-dl 2020.09.20 this happens now. Sept 23: https://urplay.se/program/214580-nixon-och-skandalerna-nixon-den-enda [09/23/20 07:23:04] ERROR: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)> (caused by URLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)'),)) Sept 24: https://urplay.se/program/210205-fjaderlatt-och-superstark [09/24/20 05:51:35] ERROR: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)> (caused by URLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)'),)) Perhaps this is the same problem as it was previous with Svtplay, that was fixed then ?! |
Checklist
Verbose log
Description
Just moments ago youtube-dl stopped working for svtplay.se. It has been working all morning but suddenly stopped this afternoon.