Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Can't play anything. #949

Open
Arathonk opened this issue Nov 22, 2024 · 82 comments
Open

[BUG] Can't play anything. #949

Arathonk opened this issue Nov 22, 2024 · 82 comments
Labels
bug Something isn't working

Comments

@Arathonk
Copy link

Describe the bug
I can't play any sources, gives a general Seren error/no playable sources found error. "error code 37" RD is active and re authorised.

To Reproduce
Steps to reproduce the behavior:
Play any episode/file

Expected behavior
Play the episode/file

Screenshots

Kodi Version (please complete the following information):

  • Kodi Version 20.3

Additional context
Kodi logfile: https://paste.kodi.tv/aluhasasik
Seren version latest 3.0.1

@Arathonk Arathonk added the bug Something isn't working label Nov 22, 2024
@Arathonk
Copy link
Author

Apperently it's the RD API because of some infringement issues?

@miminno
Copy link

miminno commented Nov 22, 2024

Same issue here. Any workarounds?

@henryjfry
Copy link

henryjfry commented Nov 22, 2024

If you are adventurous you could try my attempt here:

https://gist.github.com/henryjfry/725cce9ce0222b063e5e40a7c571d032

Appears to work.

You'd probably need to extend your scraping timeout

@Arathonk
Copy link
Author

If you are adventurous you could try my attempt here:

https://gist.github.com/henryjfry/725cce9ce0222b063e5e40a7c571d032

Appears to work.

You'd probably need to extend your scraping timeout

What do we need to do with that?

@henryjfry
Copy link

Replace the contents of:

~/.kodi/addons/plugin.video.seren/resources/lib/debrid/real_debrid.py

@peno64
Copy link

peno64 commented Nov 22, 2024

Don't you guys know that France federal government has instructucted real debrid to stop providing illegal video content? They had to disable some API functions and that is the reason why all addons, not only Seren, doesn't work anymore as it worked. RD also says that they will have to remove all illegal content from their servers.

@Arathonk
Copy link
Author

Yes, I found out after opening the issue. But there seems to be solutions, like the one @henryjfry posted, I'll try that later. It also works again on Torrentio@Stremio

@henryjfry
Copy link

Don't you guys know that France federal government has instructucted real debrid to stop providing illegal video content? They had to disable some API functions and that is the reason why all addons, not only Seren, doesn't work anymore as it worked. RD also says that they will have to remove all illegal content from their servers.

They disabled the "instantAvailability" api endpoint.
But unless they effectively stop providing any kind of torrent functionality via API thats all thats has changed so far.
They may have stepped up DMCA action but until that time they wont be removing anything unless explicitly asked. Because if they start removing stuff without explicit instruction they stand to lose money.

As is its basically only useful for many people with the torrents functionality. Without that they cant possibly survive as a viable service in my opinion. So stuff will start going, and admittedly a court order to terminate a specific API endpoint is very worrying.
But its definetly not the end. Not yet.

@peno64
Copy link

peno64 commented Nov 22, 2024

@henryjfry

Could it be that your change to real_debrid.py is based on an older version of that file? I see differences that don't have a purpose to work-around this problem.

@henryjfry
Copy link

henryjfry commented Nov 22, 2024

@henryjfry

Could it be that your change to real_debrid.py is based on an older version of that file? I see differences that don't have a purpose to work-around this problem.

Yeah probably, i figured it wouldn't have changed too much but it is from v3.0.0.0

But to nip any future queries in the bud if a direct copy replacement doesnt work, wait for official addon updates.

@peno64
Copy link

peno64 commented Nov 22, 2024

@henryjfry

I will try your change in a moment. Can you elaborate on your statement "You'd probably need to extend your scraping timeout".
Where do you make this change and what value do you use?

@henryjfry
Copy link

In seren settings under scraping i think

@peno64
Copy link

peno64 commented Nov 22, 2024

Just tried the proposed change from @henryjfry and it works. Even without changing the timeout.

Maybe a zip of this should be made such that other people can also install this.

@peno64
Copy link

peno64 commented Nov 22, 2024

@henryjfry

Looking at the change you did in that file I must say you are a magician. Working around the instantAvailability api call and having made that fix so fast. Wow.

@Arathonk
Copy link
Author

I checked the fix aswell, and it does work! However it's a bit slow, takes a little while to find sources, thanks bud!

@henryjfry
Copy link

henryjfry commented Nov 22, 2024

Yeah there is likely some kind of optimization which can be done, a duplicate/recent cache lookup check which would potentially eliminate some unnecessary calls.
Additionally filtering out files at the select_all stage based on the source filtering criteria could save some calls.

I'm fairly certain that what now happens is it adds a torrent, queries if it's downloaded, deletes it. Then queries all the cached torrents by adding them again to determine which one to stream.

But definitely some doubling of the lookups needed is happening.
However this was the quickest way to get the current code working so 🤷‍♂️

@Arathonk
Copy link
Author

Yes that's what I figured, but at least it's working, saved a lot of headaches.

@Mike580
Copy link

Mike580 commented Nov 23, 2024

Sorry, could you please elaborate on how to replace the contents of ~/.kodi/addons/plugin.video.seren/resources/lib/debrid/real_debrid.py? Thanks in advance

@Arathonk
Copy link
Author

You have to go to the file location(just look up online how to get there),
~/.kodi/addons/plugin.video.seren/resources/lib/debrid/real_debrid.py
And then replace the contents or replace the entire file with this:
https://gist.github.com/henryjfry/725cce9ce0222b063e5e40a7c571d032
You can either copy and paste the text, or you can download the file as a zip.
It's really easy.

@shlomy79
Copy link

You have to go to the file location(just look up online how to get there), ~/.kodi/addons/plugin.video.seren/resources/lib/debrid/real_debrid.py And then replace the contents or replace the entire file with this: https://gist.github.com/henryjfry/725cce9ce0222b063e5e40a7c571d032 You can either copy and paste the text, or you can download the file as a zip. It's really easy.

not working i copied thr file over the old one then when i opend the kodi its give error on twilight addon i tring and getting to load a tv show no links

@henryjfry
Copy link

You have to go to the file location(just look up online how to get there), ~/.kodi/addons/plugin.video.seren/resources/lib/debrid/real_debrid.py And then replace the contents or replace the entire file with this: https://gist.github.com/henryjfry/725cce9ce0222b063e5e40a7c571d032 You can either copy and paste the text, or you can download the file as a zip. It's really easy.

not working i copied thr file over the old one then when i opend the kodi its give error on twilight addon i tring and getting to load a tv show no links

Then i suspect you didnt do it correctly.
But without any error messages for context thats all I can say.

Dont know what twilight is or has to do with seren

@Jbone97
Copy link

Jbone97 commented Nov 24, 2024

Replace the contents of:

~/.kodi/addons/plugin.video.seren/resources/lib/debrid/real_debrid.py

I can’t seem to get to this file location. So here I am begging for help. 🤦‍♂️

@piergni
Copy link

piergni commented Nov 24, 2024

Replace the contents of:
~/.kodi/addons/plugin.video.seren/resources/lib/debrid/real_debrid.py

I can’t seem to get to this file location. So here I am begging for help. 🤦‍♂️

locations:
https://kodi.wiki/view/Kodi_data_folder

depends on the device you're trying to do this on.... on the newest version of android, you can't access Android/data/ ( this whole folder is empty/locked down ) so it's not possible. I spent hours yesterday trying to figure this out just to give up and switch to a different add-on. Was trying to do this on the newest model Firestick.

@fade2gray
Copy link

@henryjfry's method worked for me on an RPi5 👍, and I will be trying it on an older Fire Stick using this guide ...
https://www.youtube.com/watch?v=EAn1gatsTfA

@peno64
Copy link

peno64 commented Nov 24, 2024

@piergni

It is perfectly possible on an android, even on the newest. However you must use the kodi file manager for that. Put the file on a shred location like a network drive or an usb stick and then you can copy the file via kodi's file manager from that shared location to the addon folder.

@piergni
Copy link

piergni commented Nov 24, 2024

interesting @peno64

if I hadn't found a work around I'd try that, but swapping add-ons for me isn't that big a deal

@fade2gray
Copy link

Re my previous comment: #949 (comment)

The Xplore app used in the video is no longer foc to use Wi-Fi or Ftp file transfer, but you can use Ftp file transfer foc with the ES File Explorer app.

@liquidcms
Copy link

Some tips for those with Nvidia Shield to use Henry's fix:

  • on Shield: Settings - Device Preferences - Storage - Transfer files over local network (even if enabled, click it to see info/options)
  • note ip/username/password (and make sure enabled, obviously)
  • got to pc on same network (Windows) and in file explorer enter \[ip address]
  • it will ask for username/password
  • brings you to \internal
  • go to: \internal\Android\data\org.xbmc.kodi\files.kodi\addons\plugin.video.seren\resources\lib\debrid and replace real-debrid.py with Henry's version.

I did this while Kodi was stopped; but as we know stopping an app in Shield doesnt really stop it so i had to go to Settings - Apps - Kodi and Force stop and then restart Kodi for change to take affect.

Thanks Henry for the fix.

@DeAngryLeprejuan
Copy link

I find, If you turn on Manual selection for sources, You can select the Torrent, And it will load it to Read Debrid.

Real Debrid Will no long give streams Services like Kodi and Streamio "Instant Avalibility" Looks like I'll be moving over to Preimuimize.me

@bills176
Copy link

bills176 commented Nov 26, 2024

My setup is on a Win 11 machine. I also have Premiumize connected. I installed the RD fix here and it seems to work. However when I now scrape a TV show I only get RD response and no returns from Premiumize. Scraping movies works as expected. Rolling back Seren returns Premiumize. Seems something else has changed. I appreciate all the help of the folks here.

Interesting, when you disable real debrid do the premiumize results come back?

And are you sure there aren't any premiumize results? Perhaps they're at the bottom depending on how seren is prioritising sources

There are no premiumize results. I cleared the RD authorization and I still get RD results and no premiumize results in TV shows. Get both in movies with RD disabled. When I re-enable RD my account info shows. I reset to defaults for that settings page and it cleared my account data. I reauthorized premiumize, left RD blank and still get RD results in TV and Movies. I may have to roll back and use only premiumize. Has anyone else tried revoking RD authorization?

@bbviking
Copy link

bbviking commented Nov 26, 2024

My setup is on a Win 11 machine. I also have Premiumize connected. I installed the RD fix here and it seems to work. However when I now scrape a TV show I only get RD response and no returns from Premiumize. Scraping movies works as expected. Rolling back Seren returns Premiumize. Seems something else has changed. I appreciate all the help of the folks here.

Interesting, when you disable real debrid do the premiumize results come back?
And are you sure there aren't any premiumize results? Perhaps they're at the bottom depending on how seren is prioritising sources

There are no premiumize results. I cleared the RD authorization and I still get RD results and no premiumize results in TV shows. Get both in movies with RD disabled. When I re-enable RD my account info shows. I reset to defaults for that settings page and it cleared my account data. I reauthorized premiumize, left RD blank and still get RD results in TV and Movies. I may have to roll back and use only premiumize. Has anyone else tried revoking RD authorization?

For premiumize results not showing, have you tried disabling preemptive termination? I think seren might not be including those results because scraping has already been terminated. I have tested it myself and with that disabled, I was able to get premiumize, real debrid, all debrid results to show together

Rescrape just to double check. Rescraping should also fix the issue you were having with RD results showing up, seren still has them cached from when you had it enabled.

@bills176
Copy link

For premiumize results not showing, have you tried disabling preemptive termination? I think seren might not be including those results because scraping has already been terminated. I have tested it myself and with that disabled, I was able to get premiumize, real debrid, all debrid results to show together

Rescrape just to double check. Rescraping should also fix the issue you were having with RD results showing up, seren still has them cached from when you had it enabled.

You were right. Good catch. Prior to disabling preemptive termination I did try clearing cache and rescraping. It was acting goofy. Anyways seems okay now. Thanks for the advice and help on all this.

@Jbone97
Copy link

Jbone97 commented Nov 27, 2024

@henryjfry's method worked for me on an RPi5 👍, and I will be trying it on an older Fire Stick using this guide ... https://www.youtube.com/watch?v=EAn1gatsTfA

Were you successful in doing the fix on a fire stick? I was able to get it done on one of my shields going to do my 2nd one and then attempt the firestick…

@bbviking
Copy link

You were right. Good catch. Prior to disabling preemptive termination I did try clearing cache and rescraping. It was acting goofy. Anyways seems okay now. Thanks for the advice and help on all this.

No worries, I'm just glad I didn't create any new bugs haha. I felt the same way when I tested it, it did seem to behave weirdly initially but seemed fine soon enough. Maybe I didn't properly clear the cache or something.

@bbviking
Copy link

bbviking commented Nov 27, 2024

Were you successful in doing the fix on a fire stick? I was able to get it done on one of my shields going to do my 2nd one and then attempt the firestick…

I've posted a reddit thread about the update that comes with installation instructions LINK

Install Instructions

  1. To install this update, first have a previous version of seren installed to ensure that you have the required dependencies.

  2. Next in Kodi go to 'Settings' -> 'File Manager' -> 'Add Source'

  3. For the source enter https://bbviking.github.io/ and name it anything you want (probably bbviking for simplicity)

  4. You will need to install plugin.video.seren-3.0.6.zip by going to 'Add-ons' -> 'Install from Zip' , choosing the source you just added and then the zip file. If you don't know how to do that, you can follow this guide: https://kodi.wiki/view/Add-on_manager#How_to_install_from_a_ZIP_file

@NorthEndSauce
Copy link

Were you successful in doing the fix on a fire stick? I was able to get it done on one of my shields going to do my 2nd one and then attempt the firestick…

I've posted a reddit thread about the update that comes with installation instructions LINK

Install Instructions

  1. To install this update, first have a previous version of seren installed to ensure that you have the required dependencies.
  2. Next in Kodi go to 'Settings' -> 'File Manager' -> 'Add Source'
  3. For the source enter https://bbviking.github.io/ and name it anything you want (probably bbviking for simplicity)
  4. You will need to install plugin.video.seren-3.0.6.zip by going to 'Add-ons' -> 'Install from Zip' , choosing the source you just added and then the zip file. If you don't know how to do that, you can follow this guide: https://kodi.wiki/view/Add-on_manager#How_to_install_from_a_ZIP_file

thanks so much for this! I’m not the greatest online anymore or with Firesticks but created an account just to thank you! Got my shows back

@fade2gray
Copy link

@Jbone97 Yes, I followed the guide to install 'ES File Explorer' instead of 'Xplore'.

In ESFE, go to Display Settings and enable 'Display Hidden Files', then find and select 'View on PC' followed by 'Turn On' - a ftp address will be displayed which can be entered in Windows Explorer or other ftp client.

@arturochent
Copy link

Surf to https://github.com/bbviking/plugin.video.seren Press the green Button "Code" Choose Download ZIP unzip that file to a new location rename plugin.video.seren-master to plugin.video.seren zip that again to plugin.video.seren.zip (note that the folder plugin.video.seren must be at the root of the zip) That zip file can now be used in kodi via install from zip so in fact you new created zip is the same as the downloaded one with the same structure except that plugin.video.seren-master is renamed to plugin.video.seren If you use 7-zip you can do that even without unzipping/zipping the downloaded zip

Wonderful!! Kudos on this one!! Install was flawless

@liquidcms
Copy link

I have 3.0.5 installed. Add new source to bbviking's repo. When I add from zip and go to this source I see zip for 3.0.61. Selecting this does nothing except remove my previous version.

If I reboot kodi, my old version appears again.

@athefirestick
Copy link

I can pull several resources, but I only end up with one cloud resource. The cloud resource appears to download, but I can't access the location to play the file. Where would this resource be stored, and how do I play the file? I did access Trakt directly and noticed that some TV/Movies were blocked from view and required a subscription. If there is a fix, then let's have it. Nobody wants to take out 10 subscriptions to view movies and tv shows. What happened to pay-for-view?

@bbviking
Copy link

thanks so much for this! I’m not the greatest online anymore or with Firesticks but created an account just to thank you! Got my shows back

No worries! I'm glad it worked for you :)

@bbviking
Copy link

Install Instructions

  1. To install this update, first have a previous version of seren installed to ensure that you have the required dependencies.
  2. Next in Kodi go to 'Settings' -> 'File Manager' -> 'Add Source'
  3. For the source enter https://bbviking.github.io/ and name it anything you want (probably bbviking for simplicity)
  4. You will need to install plugin.video.seren-3.0.6.zip by going to 'Add-ons' -> 'Install from Zip' , choosing the source you just added and then the zip file. If you don't know how to do that, you can follow this guide: https://kodi.wiki/view/Add-on_manager#How_to_install_from_a_ZIP_file

I have updated the RD workaround implementation that should fix some issues that people were having. The same installation instructions I posted still apply.

You can find the reddit post I made for this update here:

https://www.reddit.com/r/Addons4Kodi/comments/1h3j6c2/seren_3062_improved_rd_fix_implementation/

@bbviking
Copy link

I have 3.0.5 installed. Add new source to bbviking's repo. When I add from zip and go to this source I see zip for 3.0.61. Selecting this does nothing except remove my previous version.

If I reboot kodi, my old version appears again.

It can take some minutes to install depending on your hardware unfortunately, not sure what the cause it. Whilst installing addon updates, kodi appears to uninstalls the previous version. If you wait long enough it should install.

@IANKA1007
Copy link

Surf to https://github.com/bbviking/plugin.video.seren Press the green Button "Code" Choose Download ZIP unzip that file to a new location rename plugin.video.seren-master to plugin.video.seren zip that again to plugin.video.seren.zip (note that the folder plugin.video.seren must be at the root of the zip) That zip file can now be used in kodi via install from zip so in fact you new created zip is the same as the downloaded one with the same structure except that plugin.video.seren-master is renamed to plugin.video.seren If you use 7-zip you can do that even without unzipping/zipping the downloaded zip

Wonderful!! Kudos on this one!! Install was flawless

This worked perfectly gor me too!!! Great instructions easy to follow. I downloaded the zip on pc . Followed instructions , moved the new zip over to external HDD abd then plugged that into my Fire Cube and opens Kodi and lbrowsedd external HDD and unzipped and bam. All done!. Amazing. Thank you kindly sir!

@liquidcms
Copy link

I have 3.0.5 installed. Add new source to bbviking's repo. When I add from zip and go to this source I see zip for 3.0.61. Selecting this does nothing except remove my previous version.

If I reboot kodi, my old version appears again.

It can take some minutes to install depending on your hardware unfortunately, not sure what the cause it. Whilst installing addon updates, kodi appears to uninstalls the previous version. If you wait long enough it should install.

Yes, sure enough, I just let it sit there and it did eventually finish. And works great. Thanks for the fix.

@bills176
Copy link

bills176 commented Nov 30, 2024

It can take some minutes to install depending on your hardware unfortunately, not sure what the cause it. Whilst installing addon updates, kodi appears to uninstalls the previous version. If you wait long enough it should install.

My observation. I'm on a Win 11 box and the delay for installing seems to be downloading from the github source. After initiating I clicked back to my downloads and it displayed downloading xx% for a short time. Then I tried open a browser and navigate to the source github and click the zip to download and it is slow for a small file.

@Gillsiwillsi
Copy link

Just want to say a HUUUUUUGE thanks to bbviking for their fix. Worked a treat on all my Firesticks (including on Kodi 21). Awesome!! Takes 6-7 minutes.

@MoHara23
Copy link

MoHara23 commented Dec 1, 2024

Dear can I use the bbviking fix on my iPhone 11 Pro ? I use Kodi on this phone . Is there any step explanation how to add files to an iPhone and to make Kodi app see the file ?

@Gillsiwillsi
Copy link

Dear can I use the bbviking fix on my iPhone 11 Pro ? I use Kodi on this phone . Is there any step explanation how to add files to an iPhone and to make Kodi app see the file ?

It worked great on my Android phone!

Open Kodi

on the left hand side of the screen, tap on the Settings cog, then tap:

File Manager

Add source

and type in:

https://bbviking.github.io/

then tap:

Enter a name

Type: bb

then tap:

OK

go back a screen, and then tap:

Addons

Install from zip file

bb

plugin.video.seren-3.0.62.zip

and wait...

It'll take a few minutes and I think you get a prompt to install/update Seren. Tap yes.

I was worried I'd have to configure Seren all over again, but my accounts etc were intact.

@MoHara23
Copy link

MoHara23 commented Dec 1, 2024

Dear can I use the bbviking fix on my iPhone 11 Pro ? I use Kodi on this phone . Is there any step explanation how to add files to an iPhone and to make Kodi app see the file ?

It worked great on my Android phone!

Open Kodi

on the left hand side of the screen, tap on the Settings cog, then tap:

File Manager

Add source

and type in:

https://bbviking.github.io/

then tap:

Enter a name

Type: bb

then tap:

OK

go back a screen, and then tap:

Addons

Install from zip file

bb

plugin.video.seren-3.0.62.zip

and wait...

It'll take a few minutes and I think you get a prompt to install/update Seren. Tap yes.

I was worried I'd have to configure Seren all over again, but my accounts etc were intact.

Ok I did manage to install in anyway , I was a little confused : I thaught this fix is a workaround and needed manually installing files but it’s as easy as always : install from zip .

great solution .

only I had to do extra : to install the Seren Omega add on .

thanks a lot

@xen0mk
Copy link

xen0mk commented Dec 5, 2024

Can someone start to implement this in the main branch?

@moraisaugusto
Copy link

I can confirm that the zip file provided on https://bbviking.github.io worked fine!!! Took me a while to fix this issue. I updated my libreelec, changed my wireguard server. I was getting crazy. 😂

@Wlada
Copy link

Wlada commented Dec 10, 2024

It works for me as well. Thank you!

@xen0mk
Copy link

xen0mk commented Dec 10, 2024

The zip worked only on 1 device out of 4 I tried... it just gets stuck on Installing....77% no matter how much time I leave it to go through it...

@Wlada
Copy link

Wlada commented Dec 10, 2024

It was the same for me, but just be patient. It takes some time.

@rattler98
Copy link

It takes a while to install, but it will finally get there if you're patient. Once you load it onto one device, use adblink to backup and clone onto your other devices.

@balconor
Copy link

Mine stalls at 77% as well. Waiting overnight did not help.

@peno64
Copy link

peno64 commented Jan 20, 2025

It's a github thing.

Download the zip, put it on your kodi device and then install the zip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests