myepisodes.com stopped updating

All your suggestions, requests and ideas for future development
Post Reply
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

myepisodes.com stopped updating

Post 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 ?(?????)?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: myepisodes.com stopped updating

Post 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
:idea: Please read the FAQ and How to Request Help.
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Re: myepisodes.com stopped updating

Post by pax0707 »

Only thing about it in log is "Update MyEpisodes".

As for that script I'm not quite sure what to do.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: myepisodes.com stopped updating

Post 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.
:idea: Please read the FAQ and How to Request Help.
DarellCraighead
Posts: 22
Joined: 29 Nov 2014, 20:39

Re: myepisodes.com stopped updating

Post by DarellCraighead »

Hey Rednoah,
For those of us who love this functionality, but don't code... would love to see this working again ;-)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: myepisodes.com stopped updating

Post by rednoah »

The code is 100% open-source. ;)
:idea: Please read the FAQ and How to Request Help.
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Re: myepisodes.com stopped updating

Post 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.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: myepisodes.com stopped updating

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: myepisodes.com stopped updating

Post 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
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: myepisodes.com stopped updating

Post by kim »

User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: myepisodes.com stopped updating

Post 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.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: myepisodes.com stopped updating

Post 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)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: myepisodes.com stopped updating

Post 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.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: myepisodes.com stopped updating

Post 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
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: myepisodes.com stopped updating

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: myepisodes.com stopped updating

Post 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:
:idea: Please read the FAQ and How to Request Help.
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Re: myepisodes.com stopped updating

Post by pax0707 »

For some reason, it worked last night.
;- )=
Post Reply