• 1
  • 24
  • 25
  • 26(current)
  • 27
  • 28
  • 43
Release service.subtitles.subscene
(2019-05-21, 19:54)Helioy Wrote: Anyone know what's happening in line 463+464. Workaround for cloudflare? I suggest to use something like https://github.com/VeNoMouS/cloudscraper...oudscraper instead.
Quote:        request = urllib2.Request("https://us-central1-kodi-thuongtin.cloudfunctions.net/subscene2", data , {'Content-Type': 'application/json', 'Content-Length': len(data)})
        response = urllib2.urlopen(request)
naww as a kodi plugin developer myself, feel the <3 Helioy

I would do something simply as ...

import cloudscraper
scraper = cloudscraper.create_scraper()
response = scraper.get('https://us-central1-kodi-thuongtin.cloudfunctions.net/subscene2', json=data)

Assuming "data" is a dict...
Reply
(2019-05-23, 03:24)VeNoMouSNZ Wrote:
(2019-05-21, 19:54)Helioy Wrote: Anyone know what's happening in line 463+464. Workaround for cloudflare? I suggest to use something like https://github.com/VeNoMouS/cloudscraper...oudscraper instead.
Quote:        request = urllib2.Request("https://us-central1-kodi-thuongtin.cloudfunctions.net/subscene2", data , {'Content-Type': 'application/json', 'Content-Length': len(data)})
        response = urllib2.urlopen(request)
naww as a kodi plugin developer myself, feel the <3 Helioy

I would do something simply as ...

import cloudscraper
scraper = cloudscraper.create_scraper()
response = scraper.get('https://us-central1-kodi-thuongtin.cloudfunctions.net/subscene2', json=data)

Assuming "data" is a dict... 

Hah. I see you're here as well.  ​​​​​​Is there any reason for going through his site? Something is passed and returned through his server which I'm not too keen about. Privacy.... So would it be possible to work directly with subscene?  I am slowly learning python, data science, so getting the a test env up and running for kodi mostlikely is quite challenging for me. Yet, it is fun to poke around.
Win 8.1 64bit
NUC5i5RYK, Onkyo TX508, LG 42LM620T
Reply
(2019-05-24, 23:58)Helioy Wrote:
(2019-05-23, 03:24)VeNoMouSNZ Wrote:
(2019-05-21, 19:54)Helioy Wrote: Anyone know what's happening in line 463+464. Workaround for cloudflare? I suggest to use something like https://github.com/VeNoMouS/cloudscraper...oudscraper instead.
naww as a kodi plugin developer myself, feel the <3 Helioy

I would do something simply as ...

import cloudscraper
scraper = cloudscraper.create_scraper()
response = scraper.get('https://us-central1-kodi-thuongtin.cloudfunctions.net/subscene2', json=data)

Assuming "data" is a dict...  

Hah. I see you're here as well.  ​​​​​​Is there any reason for going through his site? Something is passed and returned through his server which I'm not too keen about. Privacy.... So would it be possible to work directly with subscene?  I am slowly learning python, data science, so getting the a test env up and running for kodi mostlikely is quite challenging for me. Yet, it is fun to poke around. 

Nothing at all, I don't think it would be that hard to write a python module for it... surely there must already be an existing module around?
Reply
I haven't seen CloudFlare's protection page on subscene.com, have you?

I've been playing around with the version currently in the Kodi repo and got it to work (working directly against subscene.com). Sometimes there are alot of 503 Service Unavailable results from subscene.com but other times it works fine. There were other reasons why the version in the Kodi repo didn't work, changed URLs and more.

I've put the edits I've made here: https://github.com/appelgran/service.subtitles.subscene
Reply
(2019-06-01, 18:22)appelgran Wrote: I haven't seen CloudFlare's protection page on subscene.com, have you?

I've been playing around with the version currently in the Kodi repo and got it to work (working directly against subscene.com). Sometimes there are alot of 503 Service Unavailable results from subscene.com but other times it works fine. There were other reasons why the version in the Kodi repo didn't work, changed URLs and more.

I've put the edits I've made here: https://github.com/appelgran/service.subtitles.subscene
Hi.
Are there anybody there have try this?
Reply
I've put some more work into the add-on and it works OK now. I've made a release named v1.7.3 which is available on GitHub.

Both tv show episode and movie subtitle search works now. The code is rewritten to search Google for subscene.com subtitle pages (since subscene.com has taken steps to prevent bot searching). The fine tuning of search result isn't there yet. That will be aim of v.1.7.4 and you are welcome to contribute.
Download zip from: https://github.com/appelgran/service.sub...e/releases

Please test it and provide some feedback or contribute.
Reply
Hi,
I get the following error when trying v1.7.3
Code:
2019-07-12 19:52:45.164 T:1157219184   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: 'NoneType' object has no attribute '__getitem__'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/service.subtitles.subscene/service.py", line 738, in <module>
                                                search(item)
                                              File "/storage/.kodi/addons/service.subtitles.subscene/service.py", line 561, in search
                                                search_tvshow(item['tvshow'], item['season'], item['episode'], item['3let_language'], filename, item['year'])
                                              File "/storage/.kodi/addons/service.subtitles.subscene/service.py", line 477, in search_tvshow
                                                search_tvshow_google_edition(tvshow, season, episode, languages, filename, year)
                                              File "/storage/.kodi/addons/service.subtitles.subscene/service.py", line 526, in search_tvshow_google_edition
                                                getallsubs(url, languages, filename, epstr)
                                              File "/storage/.kodi/addons/service.subtitles.subscene/service.py", line 367, in getallsubs
                                                log(__name__, "language_info: %s, language_info['3let']: %s, allowed_languages: %s" % (language_info, language_info['3let'], allowed_languages))
                                            TypeError: 'NoneType' object has no attribute '__getitem__'
                                            -->End of Python script error report<--
Image
Reply
(2019-07-12, 21:34)joolz Wrote: Hi,
I get the following error when trying v1.7.3
Code:
2019-07-12 19:52:45.164 T:1157219184   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: 'NoneType' object has no attribute '__getitem__'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/service.subtitles.subscene/service.py", line 738, in <module>
                                                search(item)
                                              File "/storage/.kodi/addons/service.subtitles.subscene/service.py", line 561, in search
                                                search_tvshow(item['tvshow'], item['season'], item['episode'], item['3let_language'], filename, item['year'])
                                              File "/storage/.kodi/addons/service.subtitles.subscene/service.py", line 477, in search_tvshow
                                                search_tvshow_google_edition(tvshow, season, episode, languages, filename, year)
                                              File "/storage/.kodi/addons/service.subtitles.subscene/service.py", line 526, in search_tvshow_google_edition
                                                getallsubs(url, languages, filename, epstr)
                                              File "/storage/.kodi/addons/service.subtitles.subscene/service.py", line 367, in getallsubs
                                                log(__name__, "language_info: %s, language_info['3let']: %s, allowed_languages: %s" % (language_info, language_info['3let'], allowed_languages))
                                            TypeError: 'NoneType' object has no attribute '__getitem__'
                                            -->End of Python script error report<--

same
Reply
The subtitle results page must have contained some language which isn't supported by the add-on. I've fixed the issue now, see latest release v1.7.3.1.

https://github.com/appelgran/service.sub...ses/latest

If you try again and search your kodi.log for "is not available in subscene_languages list" you can find out which unsupported language you encountered.
Reply
Thumbs Up 
(2019-07-22, 23:35)appelgran Wrote: The subtitle results page must have contained some language which isn't supported by the add-on. I've fixed the issue now, see latest release v1.7.3.1.

https://github.com/appelgran/service.sub...ses/latest

If you try again and search your kodi.log for "is not available in subscene_languages list" you can find out which unsupported language you encountered.

Thanks for your efforts, it is a great idea indeed to use Google search 👍🏼
There is just an error when running in Android Kodi, that a string and int cannot be concatenated, it's in line 275
After a quick edit from "year" to "str(year)", it now works like a charm 👍🏼👍🏼

Thanks again.
Reply
Did something change? Being told adress don't contain a subtitle file when I try to get one. Using 1.7.3.1.
I make set posters! (I also take requests)
Reply
(2019-07-22, 23:35)appelgran Wrote: see latest release v1.7.3.1.

https://github.com/appelgran/service.sub...ses/latest
You're a bloody lifesaver, Appelgran! I only just discovered your post, and after four months of subscene being broken, it's working for me again because of you Laugh

Thank you!
Reply
(2019-07-03, 19:31)appelgran Wrote: I've put some more work into the add-on and it works OK now. I've made a release named v1.7.3 which is available on GitHub.

Both tv show episode and movie subtitle search works now. The code is rewritten to search Google for subscene.com subtitle pages (since subscene.com has taken steps to prevent bot searching). The fine tuning of search result isn't there yet. That will be aim of v.1.7.4 and you are welcome to contribute.
Download zip from: https://github.com/appelgran/service.sub...e/releases

Please test it and provide some feedback or contribute.
Any chance of support for older builds like Jarvis
Reply
(2019-08-05, 02:29)sufreak Wrote:
(2019-07-03, 19:31)appelgran Wrote:  
Any chance of support for older builds like Jarvis   
I'm using it with Krypton just fine, I would have thought Jarvis would still run it just fine too. Did you try it and have it fail?
Reply
(2019-08-05, 04:32)Dark Steve Wrote:
(2019-08-05, 02:29)sufreak Wrote:
(2019-07-03, 19:31)appelgran Wrote:  
Any chance of support for older builds like Jarvis   
I'm using it with Krypton just fine, I would have thought Jarvis would still run it just fine too. Did you try it and have it fail?

I wasn't sure if the repo was updated for Krypton and Jarvis
Reply
  • 1
  • 24
  • 25
  • 26(current)
  • 27
  • 28
  • 43

Logout Mark Read Team Forum Stats Members Help
service.subtitles.subscene8