Gujal00 / ResolveURL

Fork of UrlResolver for XBMC by @t0mm0, @eldorados, @bstrdsmkr, @tknorris and @jsergio123
GNU General Public License v2.0
121 stars 57 forks source link

Filemoon.sx Resolver #853

Closed DWH-WFC closed 2 months ago

DWH-WFC commented 2 months ago

Hi from Germany

Filemoon Resolver dont work.

Website Link: https://filmpalast.to/stream/howard-ein-tierischer-held#video_player

Video Link: https://filemoon.sx/e/0mehatc2qp90 or https://kinoger.re/e/0soqz644okt2 from Kinoger.com

Log

2024-08-04 16:33:16.594 T:241772    info <general>: SMR Link Tester: Version: |1.1.13| Queries: |{'mode': 'main'}|
2024-08-04 16:33:16.594 T:241772    info <general>: SMR Link Tester: Running on: Python 3.8.15 (default, Oct 17 2022, 02:39:57) [MSC v.1929 64 bit (AMD64)]|OpenSSL 1.1.1q  5 Jul 2022
2024-08-04 16:33:16.594 T:241772    info <general>: SMR Link Tester: Args: |['plugin://plugin.video.smr_link_tester/', '8', '', 'resume:false']|
2024-08-04 16:33:19.776 T:261860    info <general>: SMR Link Tester: Version: |1.1.13| Queries: |{'mode': 'play_link', 'link': 'https://filemoon.sx/e/0mehatc2qp90'}|
2024-08-04 16:33:19.776 T:261860    info <general>: SMR Link Tester: Running on: Python 3.8.15 (default, Oct 17 2022, 02:39:57) [MSC v.1929 64 bit (AMD64)]|OpenSSL 1.1.1q  5 Jul 2022
2024-08-04 16:33:19.776 T:261860    info <general>: SMR Link Tester: Args: |['plugin://plugin.video.smr_link_tester/', '9', '?mode=play_link&link=https%3A%2F%2Ffilemoon.sx%2Fe%2F0mehatc2qp90', 'resume:false']|
2024-08-04 16:33:19.776 T:261860    info <general>: SMR Link Tester: Playing Link: |https://filemoon.sx/e/0mehatc2qp90|
2024-08-04 16:33:20.195 T:261860    info <general>: SMR Link Tester: Link Supported: |https://filemoon.sx/e/0mehatc2qp90| Resolvers: FileMoon
2024-08-04 16:33:25.432 T:261860   error <general>: ResolveURL: URLError Error - From: FileMoon Link: https://filemoon.sx/e/0mehatc2qp90: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1136)>
2024-08-04 16:33:25.474 T:252712   error <general>: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.smr_link_tester/?mode=play_link&link=https%3A%2F%2Ffilemoon.sx%2Fe%2F0mehatc2qp90]

thanks

MrDini123 commented 2 months ago

Hi,

I have tested your first link with the latest version of ResolveURL. Seems to work fine as long as I pass a referer such as https://filemoon.sx/e/0mehatc2qp90$$https://filmpalast.to/stream/howard-ein-tierischer-held.

Though I also encountered certificate verify failed: unable to get local issuer certificate before with Filemoon on my Arch Linux box. On Android it worked fine.

I was thinking about adding

    def __init__(self):
        self.net = common.Net(ssl_verify=False)

to the resolver code, but then I figured it wouldn't make much sense since Filemoon seemingly uses Cloudflare and so all other sources would be broken on a machine that doesn't trust CF certs, not just Filemoon.

You should check if you can update the cert store on your machine, I don't think its a ResolveURL issue, but let's wait for Gujal00's opinion.

The second link didn't play at all for me, I got a forbidden country error even with the correct referer.

Gujal00 commented 2 months ago

ResolveURL uses the ca certstore shipped with Kodi. On Windows Kodi 21.0 release version, it is resolving fine

SMR Link Tester: Version: |1.1.13| Queries: |{'mode': 'main'}|
SMR Link Tester: Running on: Python 3.8.15 (default, Oct 17 2022, 02:39:57) [MSC v.1929 64 bit (AMD64)]|OpenSSL 1.1.1q  5 Jul 2022
SMR Link Tester: Args: |['plugin://plugin.video.smr_link_tester/', '2', '', 'resume:false']|
SMR Link Tester: Version: |1.1.13| Queries: |{'mode': 'play_link', 'link': 'https://filemoon.sx/e/0mehatc2qp90$$https://filmpalast.to/'}|
SMR Link Tester: Running on: Python 3.8.15 (default, Oct 17 2022, 02:39:57) [MSC v.1929 64 bit (AMD64)]|OpenSSL 1.1.1q  5 Jul 2022
SMR Link Tester: Args: |['plugin://plugin.video.smr_link_tester/', '3', '?mode=play_link&link=https%3A%2F%2Ffilemoon.sx%2Fe%2F0mehatc2qp90%24%24https%3A%2F%2Ffilmpalast.to%2F', 'resume:false']|
SMR Link Tester: Playing Link: |https://filemoon.sx/e/0mehatc2qp90$$https://filmpalast.to/|
SMR Link Tester: Link Supported: |https://filemoon.sx/e/0mehatc2qp90$$https://filmpalast.to/| Resolvers: FileMoon
SMR Link Tester: Link Resolved: |https://filemoon.sx/e/0mehatc2qp90$$https://filmpalast.to/|https://be6721.rcr72.waw04.cdn112.com/hls2/05/06606/0mehatc2qp90_x/master.m3u8?t=wVZzfh88o4thnVsg_vHTl8wpefPr1GZFTtWyPQHPUiw&s=1722822147&e=10800&f=33032427&srv=53&asn=4771&sp=5500|User-Agent=Mozilla%2F5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F116.0.0.0+Safari%2F537.36+Edg%2F116.0.1938.62&Referer=https%3A%2F%2Ffilemoon.sx%2Fe%2F0mehatc2qp90&Origin=https%3A%2F%2Ffilemoon.sx&verifypeer=false|{}|

As to the second link kinoger.re is not in the supported domains yet. adding it get the resolver working as below

SMR Link Tester: Link Supported: |https://kinoger.re/e/0soqz644okt2| Resolvers: FileMoon
SMR Link Tester: Link Resolved: |https://kinoger.re/e/0soqz644okt2|https://be4242.rcr52.ams03.cdn112.com/hls2/01/06532/,0soqz644okt2_x,lang/ger/0soqz644okt2_ger,lang/eng/0soqz644okt2_eng,.urlset/master.m3u8?t=5-GuZjWZm3wSRXHxkRVWdDnkjzcS-e54ydmwybttsNc&s=1722822693&e=10800&f=32660387&srv=32&asn=4771&sp=5500&fr=0soqz644okt2|User-Agent=Mozilla%2F5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F117.0.8464.47+Safari%2F537.36+OPR%2F117.0.8464.47&Referer=https%3A%2F%2Fkinoger.re%2Fe%2F0soqz644okt2&Origin=https%3A%2F%2Fkinoger.re&verifypeer=false|{}|