• 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
Release service.subtitles.legendasdivx
#91
Can you test this pattern?

subtitle_pattern = "<div\sclass=\"sub_box\">.+?<div\sclass=\"sub_header\">.+?<b>(.+?)</b>\s\((\d\d\d\d)\)\s.+?name=User_Info&username=(.+?)'><b>.+?</div>.+?<table\sclass=\"sub_main\scolor1\"\scellspacing=\"0\">.+?<tr>.+?<th>CDs:</th>.+?<td>(.+?)</td>.+?<a\shref=\"\?name=Downloads&d_op=ratedownload&lid=(.+?)\">.+?<th\sclass=\"color2\">Hits:</th>.+?<td>([^\s]+).+?<td>(.+?)</td>.+?<td\scolspan=\"5\"\sclass=\"td_desc\sbrd_up\">(.*?)</td>.+?<td\sclass"

Should be good now. At least I tested with 1883 and it's good.
The problem was when it didn't encounter que popular\superpopular ... Smile Forgot about that. Now it search till the first space, every "Hits" has a space after the number.
Thanks.

Cheers!
Reply
#92
I don't know if it's possible, but DOM could be a good alternative to regex and the maintenance would be simpler. Smile
Reply
#93
Did it work on your Android\Linux side?
Had no time to test it yet...

Thanks.
Reply
#94
(2021-12-29, 00:51)HiGhLaNdeR Wrote: Can you test this pattern?

subtitle_pattern = "<div\sclass=\"sub_box\">.+?<div\sclass=\"sub_header\">.+?<b>(.+?)</b>\s\((\d\d\d\d)\)\s.+?name=User_Info&username=(.+?)'><b>.+?</div>.+?<table\sclass=\"sub_main\scolor1\"\scellspacing=\"0\">.+?<tr>.+?<th>CDs:</th>.+?<td>(.+?)</td>.+?<a\shref=\"\?name=Downloads&d_op=ratedownload&lid=(.+?)\">.+?<th\sclass=\"color2\">Hits:</th>.+?<td>([^\s]+).+?<td>(.+?)</td>.+?<td\scolspan=\"5\"\sclass=\"td_desc\sbrd_up\">(.*?)</td>.+?<td\sclass"

Should be good now. At least I tested with 1883 and it's good.
The problem was when it didn't encounter que popular\superpopular ... Smile Forgot about that. Now it search till the first space, every "Hits" has a space after the number.
Thanks.

Cheers!

Tested and no error now. But the search function is still not working properly. For 1883, episode 1, it just returned 50 results when only 2 are available.

Image
Reply
#95
Debug output:
Quote:### [LegendasDivx.com] - getallsubs: dirsearch string _parentfolder is 0 = ['C:', 'Program Files', 'Kodi', 'https:', '57.download.real-debrid.com', 'd', 'TXJMWOZ5BKCVM', '
1883 S01E01 [37DAD492].mkv']
2021-12-29 14:06:21.314 T:8160    DEBUG <general>: ### [LegendasDivx.com] - getallsubs: filename string _parentfolder is 2 =
1883 S01E01 [37DAD492]
2021-12-29 14:06:21.314 T:8160    DEBUG <general>: ### [LegendasDivx.com] - Search: FILENAME =
1883 S01E01
2021-12-29 14:06:21.315 T:8160    DEBUG <general>: ### [LegendasDivx.com] - Search: Tvshow string = 1883
2021-12-29 14:06:21.315 T:8160    DEBUG <general>: ### [LegendasDivx.com] - Search: Title string =
2021-12-29 14:06:21.315 T:8160    DEBUG <general>: ### [LegendasDivx.com] - Search: Title TV LIBRARY String =  S01E01
2021-12-29 14:06:21.315 T:8160    DEBUG <general>: ### [LegendasDivx.com] - getallsubs: Search String = ' S01E01'
2021-12-29 14:06:21.315 T:8160    DEBUG <general>: ### [LegendasDivx.com] - getallsubs: Search String Not Clean = '
1883 S01E01 [37DAD492]'
2021-12-29 14:06:21.913 T:8160    DEBUG <general>: ### [LegendasDivx.com] - POST url page: 1
2021-12-29 14:06:21.913 T:8160    DEBUG <general>: ### [LegendasDivx.com] - POST url data: b'query=+S01E01&form_cat=28'
2021-12-29 14:06:22.235 T:8160    DEBUG <general>: ### [LegendasDivx.com] - getallsubs: LanguageShort = 'pt'
The problem is that the Search String is malformed. It only contains " S01E01". The Search subroutine is not OK. On a previous version (0.4.0, I think) it was working much better. Now, because you committed all the changes, including the ones which resolved the login issue, it also changed the Search subroutine and to the worse.

The issue is here:
Quote:BEFORE:

            if tvshow != '':
                searchstring = "%s S%#02dE%#02d" % (tvshow, int(season), int(episode))
Quote: NOW: 

         if episode != '':
                searchstring = "%s S%#02dE%#02d" % (title, int(season), int(episode))
 If you revert to the older version it works well. Only 2 results are returned.

I also think that the search function works better if you don't delimit it with quotation marks. It tends to return more meaningful results, in particular with subtitles which should return a good number of matches. You can even search directly on the website, with and without quotation marks and decide for yourself which one returns better results. Try with several subtitles.
Reply
#96
(2021-12-29, 16:26)zapata07 Wrote: The problem is

Your bigger problem is that you are not adhering to the forum rules (wiki) that you agreed to when you registered: add-ons such as Real Debrid that are facilitating video piracy in any way are not welcome here. Period.
Either clean up your Kodi setup, or find your support elsewhere.
Reply
#97
(2021-12-29, 17:05)Klojum Wrote:
(2021-12-29, 16:26)zapata07 Wrote: The problem is

Your bigger problem is that you are not adhering to the forum rules (wiki) that you agreed to when you registered: add-ons such as Real Debrid that are facilitating video piracy in any way are not welcome here. Period.
Either clean up your Kodi setup, or find your support elsewhere.

I don't have any problem, big or small. I already corrected the subtitle addon for my own use. Was just trying to help have the officially published version also performing correctly. And the addon being discussed was a subtitle addon, not realdebrid.

Anyway, it's funny that you have a ton of subtitle addons published on your official repo. What do you think they are mostly used for?

It's your house and your rules so I will leave. If the author wishes to contact me, find me as johnnyo on the legendasdivx website.
Reply
#98
With OpenSubtitles, they never have/need(?) filenames with such additional addons/scene descriptions.
But the zero-tolerance stance will stay: no use or even mentioning of video piracy-related terms on this forum.
Reply
#99
(2021-12-29, 18:08)Klojum Wrote: With OpenSubtitles, they never have/need(?) filenames with such additional addons/scene descriptions.
But the zero-tolerance stance will stay: no use or even mentioning of video piracy-related terms on this forum.

You are misunderstanding the situation. With every subtitle addon it will search for the movie or tv show. And will return whatever it finds. Which invariably will be the names of the movies, or tv shows, with the additional info about the video file it is intended to. Something very similar to what I posted.

Anyway, I would edit my posts and remove the offending bits but I don't seem to be able to do it so I can't. You can do it for me, if you wish.
Reply
Happy new year!
Reply
Good morning.

Version 1.0.5 Released.

Any problems please report.

Thanks.
Reply
Going to try it, thkx.
Living Room: TV LG OLED55C9PLA, Onkyo TX-NR808, Xbox One S, Nvidia Shield TV Pro (2019), PS3, Wii, Cambridge Audio Azur 640C, Wharfedale Diamond 9.4 / 9 CS / 9.1, Sub BK Gemini, Logitech 650 Remote
Reply
It works fine!! Many thkx!!
Living Room: TV LG OLED55C9PLA, Onkyo TX-NR808, Xbox One S, Nvidia Shield TV Pro (2019), PS3, Wii, Cambridge Audio Azur 640C, Wharfedale Diamond 9.4 / 9 CS / 9.1, Sub BK Gemini, Logitech 650 Remote
Reply
Hi, 

I am having trouble using the legendasdivx addon in the last days. It worked fine. Any change? Thanks
Reply
I didn't make any changes, check if your ip is not blocked.
Reply
  • 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9

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