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

playing movies on lookmovie addon not working #1084

Open
unity-one opened this issue Sep 17, 2024 · 16 comments
Open

playing movies on lookmovie addon not working #1084

unity-one opened this issue Sep 17, 2024 · 16 comments

Comments

@unity-one
Copy link

when trying to play any movie from 'Movies' section plugin returns 'LookMovie error'.

playing titles from 'TV Shows' section works now without captcha verification.

@pitsi
Copy link

pitsi commented Nov 4, 2024

I started using lookmovie last week, because it has a season of a series I watch which no other addon has.
Anyway, here is the (important part of the) log when selecting a movie, on which the addon really fails.

2024-11-04 12:08:13.565 T:866     ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'TypeError'>
                                                   Error Contents: unsupported operand type(s) for +: 'NoneType' and 'str'
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.lookmovietomb/main.py", line 752, in <module>
                                                       router(sys.argv[2][1:])
                                                     File "/storage/.kodi/addons/plugin.video.lookmovietomb/main.py", line 655, in router
                                                       ListLinks(exlink, rys)
                                                     File "/storage/.kodi/addons/plugin.video.lookmovietomb/main.py", line 591, in ListLinks
                                                       add_item(vid_source+'|'+urlk, '[B]'+title + '[/B]', ima, 'playvid',fanart=FANART, folder=False, IsPlayable=True, infoLabels={'plot':plot,'year':year})
                                                   TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
                                                   -->End of Python script error report<--

@pitsi
Copy link

pitsi commented Nov 5, 2024

Good news everyone! A friend of mine saw the issue and suggested a fix.

Changing line 590 of main.py from this
vid_source = list((html.get('streams', None)).values())[2]
to this
vid_source = [x for x in list((html.get('streams', None)).values()) if x][0]
restores the addon's functionality for movies!

If anyone can do a pull request for it, it will be good for everyone.

@amerr97
Copy link

amerr97 commented Nov 11, 2024

Good news everyone! A friend of mine saw the issue and suggested a fix.

Changing line 590 of main.py from this vid_source = list((html.get('streams', None)).values())[2] to this vid_source = [x for x in list((html.get('streams', None)).values()) if x][0] restores the addon's functionality for movies!

If anyone can do a pull request for it, it will be good for everyone.

Hmm.. when I replace the 590 line of code, i can't get the addon to install - invalid structure

@pitsi
Copy link

pitsi commented Nov 11, 2024

No idea sorry. Maybe it needs indentation, because python is very picky about that. Make sure it is as many characters "in" as the previous one. Here it lines up with html = blablabla above and add_item below.

@amerr97
Copy link

amerr97 commented Nov 11, 2024

No idea sorry. Maybe it needs indentation, because python is very picky about that. Make sure it is as many characters "in" as the previous one. Here it lines up with html = blablabla above and add_item below.

I've been testing a little on windows, when I change the main.py of the addon in data roaming (pre installed) then the movies work ok. If I zip the folder, and try to install -it's not working.

@amerr97
Copy link

amerr97 commented Nov 11, 2024

I have managed to make it installable from zip. I have made a pull request for it to be updated.
You can find the updated .zip for installation on my github-mbebe-zips-lookmovie- 0.7 version.

https://github.com/amerr97/blomqvist/tree/master/zips/plugin.video.lookmovietomb

@pitsi thank you

@pitsi
Copy link

pitsi commented Nov 11, 2024

The credits must go to my friend who actually fixed it, not to me who posted a log and then tested the fix. I did 10% of the work and he did the remaining 90%.

Having said that, I wish someone like @amerr97 had shown the same interest with pull requests etc when I was testing and fixing fbox by myself.

@unity-one
Copy link
Author

just updated the plugin using the provided .zip file and it works now. thank you so much guys...

@def903
Copy link

def903 commented Jan 30, 2025

I put the 0.7 version zip file on a thumb drive and used the 'Install from Zip' function in Kodi. After almost giving up hope of Lookmovie ever working again any time soon, it fixed the problem for me, too. It was very easy to do. Thanks.

@defivlad
Copy link

can anyone guide me on how to install this update?

Im running Xenon Build on KODI and using this add on. I managed to download the 0.7 zip file from @amerr97 and when i try to install from zip. Kodi just crashes.

I assume I am doing it wrong.

@def903
Copy link

def903 commented Mar 25, 2025 via email

@amerr97
Copy link

amerr97 commented Mar 25, 2025

Maybe since someone approved the pull request you can try to auto update the addon.
We should add year 2025 to the next update, and fix the descriptions.
But for now the addon works perfectly

@defivlad
Copy link

Ok so I have tested several things:

I installed KODI + XENON + MBEBE on my windows PC and then ran the 0.7 zip file and it installed the update, got the add-on updated popup and movies work great now!

So I went back to the firestick and tried again and again KODI crashes after I try to install the zip.

So I fully deleted KODI+XENON off teh firestick and re-installed fresh. Then added the addon from mbebe again.
First I tried to play a movie and got the normal error.
So then tried the same file 0.7 zip file that worked on my PC and again it crashes KODI.

Could it be it that it doesn't install from firestick @amerr97 ?

Thanks everyone for helping out.

@amerr97
Copy link

amerr97 commented Mar 26, 2025

Ok so I have tested several things:

I installed KODI + XENON + MBEBE on my windows PC and then ran the 0.7 zip file and it installed the update, got the add-on updated popup and movies work great now!

So I went back to the firestick and tried again and again KODI crashes after I try to install the zip.

So I fully deleted KODI+XENON off teh firestick and re-installed fresh. Then added the addon from mbebe again. First I tried to play a movie and got the normal error. So then tried the same file 0.7 zip file that worked on my PC and again it crashes KODI.

Could it be it that it doesn't install from firestick @amerr97 ?

Thanks everyone for helping out.

Try installing the membebe one that gets the normal error.
Then find the main.py of lookmovie addon on your firestick ( installed one) and then copy our fixed version code from main.py into your preinstalled main.py code and save it.

I hope you understood.

@defivlad
Copy link

yeah that would be easy if I could see the firestick as a device on the PC via USB..i will play around with this solution thanks

@defivlad
Copy link

Thanks for all the help. I finally managed to get it to update and now it works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants