blomqvist icon indicating copy to clipboard operation
blomqvist copied to clipboard

playing movies on lookmovie addon not working

Open unity-one opened this issue 1 year ago • 35 comments

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

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

unity-one avatar Sep 17 '24 18:09 unity-one

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 avatar Nov 04 '24 10:11 pitsi

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.

pitsi avatar Nov 05 '24 05:11 pitsi

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

amerr97 avatar Nov 11 '24 12:11 amerr97

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.

pitsi avatar Nov 11 '24 13:11 pitsi

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 avatar Nov 11 '24 13:11 amerr97

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

amerr97 avatar Nov 11 '24 14:11 amerr97

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.

pitsi avatar Nov 11 '24 18:11 pitsi

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

unity-one avatar Nov 11 '24 22:11 unity-one

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.

def903 avatar Jan 30 '25 20:01 def903

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.

defivlad avatar Mar 25 '25 15:03 defivlad

I'm not an expert. I use Xenon build, too. The solution described still works for me. I have not had any problem with Kodi and LookMovie since I installed the fix.

On 03/25/2025 11:32 AM EDT Defi Vlad @.***> wrote:

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 https://github.com/amerr97 and when i try to install from zip. Kodi just crashes.

I assume I am doing it wrong.

— Reply to this email directly, view it on GitHub https://github.com/mbebe/blomqvist/issues/1084#issuecomment-2751669902, or unsubscribe https://github.com/notifications/unsubscribe-auth/BMISKPHOX5IQEF2NSQIZ6PD2WFZHXAVCNFSM6AAAAABOMB6SI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONJRGY3DSOJQGI. You are receiving this because you commented.Message ID: @.***>

[defivlad]defivlad left a comment (mbebe/blomqvist#1084) https://github.com/mbebe/blomqvist/issues/1084#issuecomment-2751669902

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 https://github.com/amerr97 and when i try to install from zip. Kodi just crashes.

I assume I am doing it wrong.

— Reply to this email directly, view it on GitHub https://github.com/mbebe/blomqvist/issues/1084#issuecomment-2751669902, or unsubscribe https://github.com/notifications/unsubscribe-auth/BMISKPHOX5IQEF2NSQIZ6PD2WFZHXAVCNFSM6AAAAABOMB6SI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONJRGY3DSOJQGI. You are receiving this because you commented.Message ID: @.***>

def903 avatar Mar 25 '25 18:03 def903

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

amerr97 avatar Mar 25 '25 18:03 amerr97

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.

defivlad avatar Mar 26 '25 15:03 defivlad

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.

amerr97 avatar Mar 26 '25 15:03 amerr97

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 avatar Mar 26 '25 16:03 defivlad

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

defivlad avatar Mar 28 '25 18:03 defivlad

Its broken again

Index Error

2025-04-12 23:00:23.872 T:31481 info <general>: Skipped 2 duplicate messages.. 2025-04-12 23:00:23.872 T:31481 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'IndexError'> Error Contents: list index out of range Traceback (most recent call last): File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.lookmovietomb/main.py", line 752, in <module> router(sys.argv[2][1:]) File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.lookmovietomb/main.py", line 653, in router ListSerial(exlink,rys) File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.lookmovietomb/main.py", line 348, in ListSerial dt = dt[0].replace('\\"',"'").replace('\n','').replace(' ', '') ~~^^^ IndexError: list index out of range -->End of Python script error report<--

I assume the website indexing structure changed since they implemented pay to watch in HD

amerr97 avatar Apr 12 '25 20:04 amerr97

In main.py find and replace all instances of >Thread Defence to g-recaptcha

kolekan avatar Apr 12 '25 23:04 kolekan

so if opened up the zip file of @amerr97 latest zip and edited the main.py and rezipped as a new version it would update kodi from the zip and work?

defivlad avatar Apr 14 '25 19:04 defivlad

so if opened up the zip file of @amerr97 latest zip and edited the main.py and rezipped as a new version it would update kodi from the zip and work?

We have to update the file with @kolekan suggestion to fix the addon. it wasnt working the other day

amerr97 avatar Apr 14 '25 19:04 amerr97

yeah what i did now is I extracted the zip you made and edited the main.py

I will see if it will let me update from zip using Kodi now when I try .

defivlad avatar Apr 14 '25 20:04 defivlad

Ok it worked with the @kolekan suggestions. Thank you.

Basically download the latest zip made by @amerr97 Extract the zip Modify main.py Zip again and call it 0.8 Go to Kodi and install from zip again.

Works!

defivlad avatar Apr 14 '25 20:04 defivlad

I will post a updated zip tomorrow for other users.

amerr97 avatar Apr 14 '25 20:04 amerr97

Guys thanks to @kolekan i'm posting a link for 0.8 fix

  • I have added year 2024, and 2025 in filter list just download and install/ update

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

amerr97 avatar Apr 15 '25 17:04 amerr97

Is the patched version of lookmovie the only addon "from" this repo that still works? It has been a year with literally zero updates on any of the addons, so I want to remove the repo completely.

pitsi avatar Jul 07 '25 16:07 pitsi

I just loaded the addon on a new Kodi setup and it worked without any patches.

-------- Original Message -------- On 7/7/25 6:44 PM, pitsi wrote:

pitsi left a comment (mbebe/blomqvist#1084)

Is the patched version of lookmovie the only addon "from" this repo that still works? It has been a year with literally zero updates on any of the addons, so I want to remove the repo completely.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

defivlad avatar Jul 07 '25 16:07 defivlad

What version did you use and from where?

pitsi avatar Jul 07 '25 16:07 pitsi

Literally a new xenon free build. addon was included and working. Looks like v0.8

-------- Original Message -------- On 7/7/25 6:54 PM, pitsi wrote:

pitsi left a comment (mbebe/blomqvist#1084)

What version did you use and from where?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

defivlad avatar Jul 07 '25 16:07 defivlad

I just hope our friend mbebe is just busy, and doing good.

amerr97 avatar Jul 07 '25 17:07 amerr97

@defivlad So a newer (patched) version and from another repo...

@amerr97 I hope so too :)

pitsi avatar Jul 07 '25 17:07 pitsi