Page 1 of 1

myepisodes.com stopped updating

Posted: 10 Oct 2020, 18:55
by pax0707
Aloha.

Looks like 4.9.2 broke updating My Episodes.
Processed files are not reflected on the site.

Regards.

Code: Select all

FileBot 4.9.2 (r8046)
JNA Native: 6.1.0
MediaInfo: 20.08
7-Zip-JBinding: 16.02
Chromaprint: 1.5.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-09-10 (r673)
Groovy: 3.0.6
JRE: OpenJDK Runtime Environment 15
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 12 Core / 4.3 GB Max Memory / 24 MB Used Memory
OS: Windows 10 (amd64)
STORAGE: NTFS [SYSTEM] @ 56 GB | NTFS [COLOSSUS] @ 4.0 TB
DATA: C:\Users\pax07\AppData\Roaming\FileBot
Package: MSI
License: FileBot License P16401237 (Valid-Until: 2021-07-31)
Done ?(?????)?

Re: myepisodes.com stopped updating

Posted: 11 Oct 2020, 03:27
by rednoah
:?: Do you get any error messages?

I'm not aware of any changes in this regard, because the code hasn't been touched in years and is rather unrelated to any specific version of FileBot, but you're welcome to debug things to figure out what exactly stopped working:
https://github.com/filebot/scripts/blob ... mes.groovy

Re: myepisodes.com stopped updating

Posted: 16 Oct 2020, 14:14
by pax0707
Only thing about it in log is "Update MyEpisodes".

As for that script I'm not quite sure what to do.

Re: myepisodes.com stopped updating

Posted: 16 Oct 2020, 15:53
by rednoah
You can set up a test case and then call the update-mes.groovy script directly. Add some println in between lines in the code. See what the request/response pairs say. Note that basic Groovy / Java / Web developer skill will be required to get to the bottom of this. Since page scrapers are involved, any change to the website may break things and require a rewrite of the scraper code to make things work again.


:idea: Note that the FileBot 4.9.1 / 4.9.2 update is probably not relevant in this case, even though it may have coincidentally stopped working one of these days. That being said, a simple test case is always a good idea to confirm this one way or another.

Re: myepisodes.com stopped updating

Posted: 17 Nov 2020, 22:29
by DarellCraighead
Hey Rednoah,
For those of us who love this functionality, but don't code... would love to see this working again ;-)

Re: myepisodes.com stopped updating

Posted: 18 Nov 2020, 03:45
by rednoah
The code is 100% open-source. ;)

Re: myepisodes.com stopped updating

Posted: 17 Dec 2020, 15:00
by pax0707
This is totally out of the scope of my knowledge.

This was a great way to check that all I wanted was downloaded.
I will miss this.

Re: myepisodes.com stopped updating

Posted: 18 Dec 2020, 19:24
by kim
I can confirm 4.9.2 does not work (ok in older Filebot)

looks like something with login part
the "session" does not contain __cfduid, PHPSESSUID and PHPSESSGID
I think this is = login not ok

on older Filebot, but still works

Code: Select all

302 Moved Temporarily
on 4.9.2

Code: Select all

200 OK

Code: Select all

does not send POST

Re: myepisodes.com stopped updating

Posted: 19 Dec 2020, 02:05
by rednoah
The script code does seem to handle cookies explicitly, and remains unchanged for years, so I don't see any clear and easy to fix issues there:
https://github.com/filebot/scripts/blob ... mes.groovy

Re: myepisodes.com stopped updating

Posted: 19 Dec 2020, 19:46
by kim

Re: myepisodes.com stopped updating

Posted: 20 Dec 2020, 06:07
by rednoah
That's possible. You can add a few println statements to the script so we can see the cookies variable. That might give us a hint.

Re: myepisodes.com stopped updating

Posted: 20 Dec 2020, 07:19
by kim
I believe I already did this ?
kim wrote: 18 Dec 2020, 19:24 the "session" does not contain __cfduid, PHPSESSUID and PHPSESSGID
compared to older Filebot (working version)

Re: myepisodes.com stopped updating

Posted: 20 Dec 2020, 07:24
by rednoah
On a related note. Does myepisodes have some kind of basic API by now? The scraper is inherently unstable and best replaced if possible.

Re: myepisodes.com stopped updating

Posted: 20 Dec 2020, 10:30
by rednoah
Adding println session reveals that login() just isn't called. Probably a strange Groovy runtime bug:
https://github.com/filebot/scripts/comm ... f0eec87bd6

e.g. this works now:

Code: Select all

filebot -script dev:update-mes Alias.1x01.mkv --def login=user:password

Re: myepisodes.com stopped updating

Posted: 20 Dec 2020, 19:42
by kim
rednoah wrote: 20 Dec 2020, 10:30 Adding println session reveals that login() just isn't called.
I had this info here, I just could not get the why and how to fix :(
Probably a strange Groovy runtime bug
Sounds like the "format is more strict = not working anymore" problem ?

anyhoo it works now :)

btw: you better change http://www.myepisodes.com to https://www.myepisodes.com

Re: myepisodes.com stopped updating

Posted: 21 Dec 2020, 02:30
by rednoah
kim wrote: 20 Dec 2020, 19:42 Sounds like the "format is more strict = not working anymore" problem ?
Pretty much. If you write weird code, then the technical debt collector will come to collect, sooner or later. :lol:

Re: myepisodes.com stopped updating

Posted: 25 Feb 2021, 09:46
by pax0707
For some reason, it worked last night.
;- )=