Jump to content

Welcome, Guest!

Be a part of CinemaVision today! Once registered and logged in, you will have access to public chat and your own private messenger, you can view and contribute guides, collaborate on the forums, review downloads, give reputation to your fellow members, contribute content and so much more. Registering is quick and completely free, so what are you waiting for?
   Sign In    Sign Up

Become a RedCarpet Club Member Today!

   Join Now
  • 1
kec2

trailers won't play

Question

 

I have a problem with playing trailers.

If i go here: https://movietrailers.apple.com/ and pick something the path is more like: https://movietrailers.apple.com/trailers/STUDIO/MOVIE-TITLE

 

2022-06-24 21:06:19.396 T:1469     INFO <general>: [- CinemaVision -]: Experience: Playing next item: VIDEO: 'https://movietrailers.apple.com/movies/dreamworks/puss-in-boots-the-last-wish/p
uss-In-boots-the-last-wish-trailer-1b_hh1080p.mov'
2022-06-24 21:06:19.407 T:911      INFO <general>: GL: Maximum texture width: 16384
2022-06-24 21:06:19.417 T:911      INFO <general>: GL: Enabling VSYNC
2022-06-24 21:06:19.534 T:1469     INFO <general>: [- CinemaVision -]: Video pre-dalay: 2000ms
2022-06-24 21:06:21.899 T:911      INFO <general>: VideoPlayer::OpenFile: https://movietrailers.apple.com/movies/dreamworks/puss-in-boots-the-last-wish/puss-In-boots-the-last-wish-trailer-1
b_hh1080p.mov|User-Agent=Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko
2022-06-24 21:06:22.124 T:1691     INFO <general>: Creating InputStream
2022-06-24 21:06:22.227 T:1469     INFO <general>: [- CinemaVision -]: Experience: PLAYBACK STARTED
2022-06-24 21:06:22.273 T:911      INFO <general>: Activate of window '12005' refused because there are active modal dialogs
2022-06-24 21:06:23.761 T:1695     INFO <general>: Skipped 13 duplicate messages..
2022-06-24 21:06:23.761 T:1695     INFO <general>: initializing python engine.
2022-06-24 21:06:23.887 T:911      INFO <general>: Activate of window '12005' refused because there are active modal dialogs
2022-06-24 21:06:25.067 T:1691     INFO <general>: Skipped 9 duplicate messages..
2022-06-24 21:06:25.067 T:1691    ERROR <general>: CCurlFile::Open failed with code 404 for https://movietrailers.apple.com/movies/dreamworks/puss-in-boots-the-last-wish/puss-In-boots-the-l
ast-wish-trailer-1b_hh1080p.mov:
                                                   
                                                   
2022-06-24 21:06:25.098 T:911      INFO <general>: Activate of window '12005' refused because there are active modal dialogs
2022-06-24 21:06:25.205 T:1691    ERROR <general>: CCurlFile::Open failed with code 404 for https://movietrailers.apple.com/movies/dreamworks/puss-in-boots-the-last-wish/puss-In-boots-the-l
ast-wish-trailer-1b_hh1080p.mov:
                                                   
                                                   
2022-06-24 21:06:25.211 T:1691    ERROR <general>: CFileCache::Open - <https://movietrailers.apple.com/movies/dreamworks/puss-in-boots-the-last-wish/puss-In-boots-the-last-wish-trailer-1b_h
h1080p.mov|User-Agent=Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko> failed to open
2022-06-24 21:06:25.211 T:1691    ERROR <general>: CVideoPlayer::OpenInputStream - error opening [https://movietrailers.apple.com/movies/dreamworks/puss-in-boots-the-last-wish/puss-In-boots
-the-last-wish-trailer-1b_hh1080p.mov|User-Agent=Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko]
2022-06-24 21:06:25.212 T:1691     INFO <general>: CVideoPlayer::OnExit()
 

 

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 1

No the CinemaVision Service addon it ads the options to the content menu for auto updates and other features to the content menu 

 

 

Edited by MartinsVision

Share this post


Link to post
Share on other sites
  • 0

TMDB works buts there are a lot of error messages in the log:

2022-06-24 21:31:32.991 T:2244    ERROR <general>: 
2022-06-24 21:31:32.991 T:2244    ERROR <general>: Traceback (most recent call last):
                                                   
2022-06-24 21:31:32.991 T:2244    ERROR <general>: 
2022-06-24 21:31:32.991 T:2244    ERROR <general>:   File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/client/youtube.py", line 94, in update_watch_histo
ry
                                                       _ = requests.get(url, params=params, headers=headers, verify=self._verify, allow_redirects=True)
                                                   
2022-06-24 21:31:32.991 T:2244    ERROR <general>: 
2022-06-24 21:31:32.991 T:2244    ERROR <general>:   File "/storage/.kodi/addons/script.module.requests/lib/requests/api.py", line 75, in get
                                                       return request('get', url, params=params, **kwargs)
                                                   
2022-06-24 21:31:32.991 T:2244    ERROR <general>: 
2022-06-24 21:31:32.991 T:2244    ERROR <general>:   File "/storage/.kodi/addons/script.module.requests/lib/requests/api.py", line 61, in request
                                                       return session.request(method=method, url=url, **kwargs)
                                                   
2022-06-24 21:31:32.991 T:2244    ERROR <general>: 
2022-06-24 21:31:32.991 T:2244    ERROR <general>:   File "/storage/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 529, in request
                                                       resp = self.send(prep, **send_kwargs)
                                                   
2022-06-24 21:31:32.991 T:2244    ERROR <general>: 
2022-06-24 21:31:32.991 T:2244    ERROR <general>:   File "/storage/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 645, in send
                                                       r = adapter.send(request, **kwargs)
                                                   
2022-06-24 21:31:32.991 T:2244    ERROR <general>: 
2022-06-24 21:31:32.991 T:2244    ERROR <general>:   File "/storage/.kodi/addons/script.module.requests/lib/requests/adapters.py", line 519, in send
                                                       raise ConnectionError(e, request=request)
                                                   
2022-06-24 21:31:32.991 T:2244    ERROR <general>: 
2022-06-24 21:31:32.991 T:2244    ERROR <general>: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='s.youtube.com', port=443): Max retries exceeded with url: /api/stats/watcht
ime?cl=456307086&docid=6tkqLPCg7x0&ei=ghC2Yra9BYrE7QSP1IiYBQ&fexp=1714240%2C23744176%2C23882502%2C23918597%2C23934970%2C23946420%2C23966208%2C23983296%2C23991608%2C23998056%2C24001373%2C240
04644%2C24007246%2C24021124%2C24034168%2C24036947%2C24077241%2C24077266%2C24080738%2C24085811%2C24096454%2C24120820%2C24123943%2C24135310%2C24140247%2C24149832%2C24154350%2C24161115%2C24164
186%2C24165080%2C24169501%2C24181174%2C24185614%2C24187043%2C24187377%2C24187516%2C24187933%2C24189951%2C24191629%2C24197321%2C24198739%2C24199724%2C24199774%2C24204311%2C24211178%2C2421162
8%2C24212885%2C24213358%2C24215196%2C24215440%2C24216955%2C24219713%2C24220088%2C24221533%2C24222378%2C24222444%2C24224084%2C24226159%2C24226951%2C24228609%2C24229063%2C24230151%2C24230438%
2C24230625%2C24233007%2C24234379%2C24238871%2C24570077&ns=yt&plid=AAXiNpVmkcDYaIa4&el=detailpage&len=141&of=3QWhwzE0G8Y3duE_0uuZ4g&uga=o122&vm=CAEQABgEOjJBS1JhaHdBZXp4cjhJa0QxRTJFTDB1aEdiQ3
lhNFFReTFHQkNUdUtzOTZaajFWcmlBQWJiQVBta0tES0hOZGZ1OWxNVnlhWDVGX0piZW9JaGt4SDEwSU8zZDNEeXZIYS0wSTAxWTN3NkxyeXFFUkxoRE9mX1YyVHN4OXlHTGt4Y3pjaEhRZkVNM1BFdjVjbzZIYmtRZ0E&ver=2&fs=0&volume=100&m
uted=0&cpn=hHICL4TFaTbl6uPW&st=140.000&et=140.000&state=stopped&noflv=1&html5=1&video_id=6tkqLPCg7x0&referrer=&eurl=https%3A%2F%2Fwww.youtube.com%2Ftv%23%2Fwatch%3Fv%3D6tkqLPCg7x0&skl=false
&ns=yt&el=leanback&ps=leanback&access_token=ya29.A0ARrdaM-2dtC1FlAFRNGVIpsImHxqCI-GQpHbfza5m77f2862sGa4EBnYKAXQlraOpdqHYGXKpmf5FnNriSKdbwHnSNS6LHgacvFmfnc7xUuaICLf-rVWJClKUwXQjKh1ZgopuTFK7O
ptoXqa413NEK3E0RHcSFIYUNnWUtBVEFTQVRBU0ZRRl91NjFWbk11QmJabGlGZENHdy1HaDQ4VzZWdw0166 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f6abcedb8c0>: Failed to e
stablish a new connection: [Errno 111] Connection refused'))
                                                   
2022-06-24 21:31:32.991 T:2244    ERROR <general>: 
2022-06-24 21:31:32.992 T:2244    ERROR <general>: [plugin.video.youtube] Failed to update watch history |None|
 

Share this post


Link to post
Share on other sites
  • 0

I ran into this recently as well - take a look at the 404 code. After some digging, for whatever reason there's an extra "h" being appended to the "h1080" in the url call. Test above by changing "hh1080" to "h1080" from the 404.

 

My present workaround: I modified the line of code adding that extra h.

This can be found in line 111 of script.cinemavision/lib/cinemavision/scrapers/itunes/__init__.py

Change

url = re.sub(r'(480p|720p|1080p)', r'h\1', url)

to be 

url = re.sub(r'(480p|720p|1080p)', r'\1', url)

 

 

You can do this by modifying the source zip (for kodi 19 here https://cinemavision.tv/files/file/676-cinemavision-add-on-development-release-for-kodi-19/), re-zipping, and installing your modified zip file with this change.

 

I haven't fully verified other impacts, but this 2 min fix allows 1080 iTunes trailers to be played flawlessly on my system. I've watched >10 movies now in the full setup with seemingly no impacts.

I notice some trailers are being marked as broken when clearing in the CinemaVision's advanced settings GUI - unsure if related, but thought I'd mention incase others see something.

Additionally, I turned of all filters by genre and rating for reliability, and disabled the "Auto Select" option for my sequence as I was experiencing similar problems to others (refs https://cinemavision.tv/forums/topic/1394-cv-throws-an-error-when-launching-a-4k-video/). This means I have to manually select my sequence at runtime - no big and should be unrelated too, but this manifested for me recently after playing many movies successfully with this change. Just sharing my recent troubleshooting to hopefully short circuit any further issues with the broken bits we've got in 2022.

 

I'm not sure what's up with TMDB, but hope this helps to get high quality iTunes trailers working again for you!

 

Edited by snojj

Share this post


Link to post
Share on other sites
  • 0

Thanks. 

Im not strong in Python but I don't think that this makes sense.

url = re.sub(r'(480p|720p|1080p)', r'\1', url)

sub() is a substitution function that substitutes 480p with 480p and 720p with 720p and 1080p with 1080p. So no changes at all.

I think that the line could be removed completely.

I could be wrong.

 

The line could also be change to:

url = re.sub(r'(h+(480p|720p|1080p))', r'h\2', url)

This insures that there is always one h before the resolution. But it does not work if the h is only suppose to be there some times.

Share this post


Link to post
Share on other sites
  • 0

I have comment out the line 111 and played 2 out of 2 trailers from Apple with no problems.

Thanks.

Share this post


Link to post
Share on other sites
  • 0

Im not sure if a understand you. 

But her goes. Yes there is a new version 1.5.0 what works with Kodi 19.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines and Terms of Use.