Kodi Community Forum
Release service.subtitles.subscene - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Subtitle Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=143)
+---- Thread: Release service.subtitles.subscene (/showthread.php?tid=184854)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43


RE: service.subtitles.subscene - VeNoMouSNZ - 2019-05-23

(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/tree/master/cloudscraper 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...


RE: service.subtitles.subscene - Helioy - 2019-05-24

(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/tree/master/cloudscraper 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.


RE: service.subtitles.subscene - VeNoMouSNZ - 2019-05-25

(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/tree/master/cloudscraper 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?


RE: service.subtitles.subscene - appelgran - 2019-06-01

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


RE: service.subtitles.subscene - xmen - 2019-06-23

(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?


RE: service.subtitles.subscene - appelgran - 2019-07-03

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.subtitles.subscene/releases

Please test it and provide some feedback or contribute.


RE: service.subtitles.subscene - joolz - 2019-07-12

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<--



RE: service.subtitles.subscene - rastarr - 2019-07-19

(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


RE: service.subtitles.subscene - appelgran - 2019-07-22

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.subtitles.subscene/releases/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.


RE: service.subtitles.subscene - asakka - 2019-07-25

(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.subtitles.subscene/releases/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.


RE: service.subtitles.subscene - Dragen - 2019-08-01

Did something change? Being told adress don't contain a subtitle file when I try to get one. Using 1.7.3.1.


RE: service.subtitles.subscene - Dark Steve - 2019-08-04

(2019-07-22, 23:35)appelgran Wrote: see latest release v1.7.3.1.

https://github.com/appelgran/service.subtitles.subscene/releases/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!


RE: service.subtitles.subscene - sufreak - 2019-08-05

(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.subtitles.subscene/releases

Please test it and provide some feedback or contribute.
Any chance of support for older builds like Jarvis


RE: service.subtitles.subscene - Dark Steve - 2019-08-05

(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?


RE: service.subtitles.subscene - sufreak - 2019-08-05

(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