CodyBerenson / PGMA-Modernized

An updated approach for Plex Gay Media Adult Agents for both Full Feature Films and Scenes
MIT License
132 stars 46 forks source link

SEARCH:: Error: in various agents #119

Closed jxakbtfocf closed 2 years ago

jxakbtfocf commented 2 years ago

I've tried agents GEVI, AEBN, AdultFilmDatabase and in all of them I can get a match but no metadata.

Every time there is this ERROR (logkit:22).

2022-01-19 10:26:20,325 (34a4) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.GEVI/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M1Ck1vdmllczEwCm1lZGlhX3R5cGU1Cm5zOApwYXJlbnRJRHM0Mgpjb20ucGxleGFwcC5hZ2VudHMuR2F5QWR1bHQ6Ly81NDI2P2xhbmc9eG5zNApndWlkYjFzNQpmb3JjZXMyNwpjb20ucGxleGFwcC5hZ2VudHMuR2F5QWR1bHRzMTMKcHJpbWFyeV9hZ2VudHM0CjU0MjZzMgppZHIwCg__
2022-01-19 10:26:20,325 (34a4) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2022-01-19 10:26:20,326 (34a4) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.GEVI/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M1Ck1vdmllczEwCm1lZGlhX3R5cGU1Cm5zOApwYXJlbnRJRHM0Mgpjb20ucGxleGFwcC5hZ2VudHMuR2F5QWR1bHQ6Ly81NDI2P2xhbmc9eG5zNApndWlkYjFzNQpmb3JjZXMyNwpjb20ucGxleGFwcC5hZ2VudHMuR2F5QWR1bHRzMTMKcHJpbWFyeV9hZ2VudHM0CjU0MjZzMgppZHIwCg__
2022-01-19 10:26:20,328 (34a4) :  INFO (agentkit:961) - Searching for matches for {'id': '5426', 'guid': 'com.plexapp.agents.GayAdult://5426?lang=xn', 'force': True, 'primary_agent': 'com.plexapp.agents.GayAdult', 'parentID': None}
2022-01-19 10:26:20,328 (34a4) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/5426/tree'
2022-01-19 10:26:20,334 (34a4) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.GayAdult://5426?lang=xn
2022-01-19 10:26:20,334 (34a4) :  DEBUG (model:234) - Deserializing from C:\Users\helto\AppData\Local\Plex Media Server\Metadata\Movies\d\3dbc259ce7a06fc6a076b1362603b9898560090.bundle\Contents\com.plexapp.agents.GayAdult\Info.xml
2022-01-19 10:26:20,335 (34a4) :  INFO (logkit:16) - GEVI  - --------------------------------------------------------------------------------
2022-01-19 10:26:20,335 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH:: Version                      : v.2019.12.25.33
2022-01-19 10:26:20,335 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH:: Python                       : 2.7.17 ('default', 'Nov 23 2021 10:20:19')
2022-01-19 10:26:20,335 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH:: Platform                     : AMD64 - Windows 10
2022-01-19 10:26:20,335 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH:: Preferences:
2022-01-19 10:26:20,335 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH::  > Cast Legend Before Summary: True
2022-01-19 10:26:20,335 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH::  > Clear Previous Collections: False - <type 'bool'>
2022-01-19 10:26:20,335 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH::  > Collection Gathering
2022-01-19 10:26:20,335 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH::      > Cast                  : False - <type 'bool'>
2022-01-19 10:26:20,335 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH::      > Director(s)           : False - <type 'bool'>
2022-01-19 10:26:20,335 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH::      > Studio                : False - <type 'bool'>
2022-01-19 10:26:20,335 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH::      > Film Title            : False - <type 'bool'>
2022-01-19 10:26:20,336 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH::      > Genres                : False - <type 'bool'>
2022-01-19 10:26:20,336 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH::  > Match Site Duration       : False
2022-01-19 10:26:20,336 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH::  > Duration Difference       : ±0 Minutes
2022-01-19 10:26:20,336 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH::  > Language Detection        : False
2022-01-19 10:26:20,336 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH::  > Library:Site Language     : (xn:en)
2022-01-19 10:26:20,336 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH::  > Network Request Delay     : 3 Seconds
2022-01-19 10:26:20,336 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH:: Media Title                  : Kinkmen Don't Ask Don't Tell
2022-01-19 10:26:20,336 (34a4) :  INFO (logkit:16) - GEVI  - SEARCH:: File Path                    : D:\Videos\Porn\HOT Super\(KinkMen) - Don't Ask Don't Tell (2010).mp4
2022-01-19 10:26:20,338 (34a4) :  INFO (logkit:16) - GEVI  - --------------------------------------------------------------------------------
2022-01-19 10:26:20,346 (34a4) :  ERROR (logkit:22) - GEVI - SEARCH:: Error: 'utf8' codec can't decode byte 0xe3 in position 21: invalid continuation byte
2022-01-19 10:26:20,348 (34a4) :  DEBUG (runtime:88) - Sending packed state data (104 bytes)
2022-01-19 10:26:20,348 (34a4) :  DEBUG (runtime:924) - Response: [200] str, 320 bytes
2022-01-19 10:26:20,352 (37a8) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.GEVI/messaging/function/X0FnZW50S2l0OkVyYXNlTWV0YWRhdGE_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMgpzNQpNb3ZpZXMxMAptZWRpYV90eXBlczQyCmNvbS5wbGV4YXBwLmFnZW50cy5HYXlBZHVsdDovLzU0MjY%40bGFuZz14bnM0Cmd1aWRyMAo_
2022-01-19 10:26:20,354 (37a8) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2022-01-19 10:26:20,354 (37a8) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.GEVI/messaging/function/X0FnZW50S2l0OkVyYXNlTWV0YWRhdGE_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMgpzNQpNb3ZpZXMxMAptZWRpYV90eXBlczQyCmNvbS5wbGV4YXBwLmFnZW50cy5HYXlBZHVsdDovLzU0MjY@bGFuZz14bnM0Cmd1aWRyMAo_
2022-01-19 10:26:20,355 (37a8) :  DEBUG (runtime:88) - Sending packed state data (104 bytes)
2022-01-19 10:26:20,355 (37a8) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
JPH71 commented 2 years ago

I will look at it this evening. Could you initialise the log file and refresh metadata for the individual film. But before running the refresh stop then start the Plex Media Server. Then send me GEVI's log.

Many thanks,

Jason

On Wed, 19 Jan 2022 at 14:35, jxakbtfocf @.***> wrote:

I've tried agents GEVI, AEBN, AdultFilmDatabase and in all of them I can get a match but no metadata.

Every time there is this ERROR (logkit:22).

2022-01-19 10:26:20,325 (34a4) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.GEVI/messaging/function/X0FnZW50S2l0OlNlYXJjaA_/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M1Ck1vdmllczEwCm1lZGlhX3R5cGU1Cm5zOApwYXJlbnRJRHM0Mgpjb20ucGxleGFwcC5hZ2VudHMuR2F5QWR1bHQ6Ly81NDI2P2xhbmc9eG5zNApndWlkYjFzNQpmb3JjZXMyNwpjb20ucGxleGFwcC5hZ2VudHMuR2F5QWR1bHRzMTMKcHJpbWFyeV9hZ2VudHM0CjU0MjZzMgppZHIwCg__

2022-01-19 10:26:20,325 (34a4) : DEBUG (runtime:49) - Received packed state data (80 bytes)

2022-01-19 10:26:20,326 (34a4) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.GEVI/messaging/function/X0FnZW50S2l0OlNlYXJjaA_/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M1Ck1vdmllczEwCm1lZGlhX3R5cGU1Cm5zOApwYXJlbnRJRHM0Mgpjb20ucGxleGFwcC5hZ2VudHMuR2F5QWR1bHQ6Ly81NDI2P2xhbmc9eG5zNApndWlkYjFzNQpmb3JjZXMyNwpjb20ucGxleGFwcC5hZ2VudHMuR2F5QWR1bHRzMTMKcHJpbWFyeV9hZ2VudHM0CjU0MjZzMgppZHIwCg__

2022-01-19 10:26:20,328 (34a4) : INFO (agentkit:961) - Searching for matches for {'id': '5426', 'guid': 'com.plexapp.agents.GayAdult://5426?lang=xn', 'force': True, 'primary_agent': 'com.plexapp.agents.GayAdult', 'parentID': None}

2022-01-19 10:26:20,328 (34a4) : DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/5426/tree'

2022-01-19 10:26:20,334 (34a4) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.GayAdult://5426?lang=xn

2022-01-19 10:26:20,334 (34a4) : DEBUG (model:234) - Deserializing from C:\Users\helto\AppData\Local\Plex Media Server\Metadata\Movies\d\3dbc259ce7a06fc6a076b1362603b9898560090.bundle\Contents\com.plexapp.agents.GayAdult\Info.xml

2022-01-19 10:26:20,335 (34a4) : INFO (logkit:16) - GEVI - --------------------------------------------------------------------------------

2022-01-19 10:26:20,335 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: Version : v.2019.12.25.33

2022-01-19 10:26:20,335 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: Python : 2.7.17 ('default', 'Nov 23 2021 10:20:19')

2022-01-19 10:26:20,335 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: Platform : AMD64 - Windows 10

2022-01-19 10:26:20,335 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: Preferences:

2022-01-19 10:26:20,335 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: > Cast Legend Before Summary: True

2022-01-19 10:26:20,335 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: > Clear Previous Collections: False - <type 'bool'>

2022-01-19 10:26:20,335 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: > Collection Gathering

2022-01-19 10:26:20,335 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: > Cast : False - <type 'bool'>

2022-01-19 10:26:20,335 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: > Director(s) : False - <type 'bool'>

2022-01-19 10:26:20,335 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: > Studio : False - <type 'bool'>

2022-01-19 10:26:20,335 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: > Film Title : False - <type 'bool'>

2022-01-19 10:26:20,336 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: > Genres : False - <type 'bool'>

2022-01-19 10:26:20,336 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: > Match Site Duration : False

2022-01-19 10:26:20,336 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: > Duration Difference : ±0 Minutes

2022-01-19 10:26:20,336 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: > Language Detection : False

2022-01-19 10:26:20,336 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: > Library:Site Language : (xn:en)

2022-01-19 10:26:20,336 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: > Network Request Delay : 3 Seconds

2022-01-19 10:26:20,336 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: Media Title : Kinkmen Don't Ask Don't Tell

2022-01-19 10:26:20,336 (34a4) : INFO (logkit:16) - GEVI - SEARCH:: File Path : D:\Videos\Porn\HOT Super(KinkMen) - Don't Ask Don't Tell (2010).mp4

2022-01-19 10:26:20,338 (34a4) : INFO (logkit:16) - GEVI - --------------------------------------------------------------------------------

2022-01-19 10:26:20,346 (34a4) : ERROR (logkit:22) - GEVI - SEARCH:: Error: 'utf8' codec can't decode byte 0xe3 in position 21: invalid continuation byte

2022-01-19 10:26:20,348 (34a4) : DEBUG (runtime:88) - Sending packed state data (104 bytes)

2022-01-19 10:26:20,348 (34a4) : DEBUG (runtime:924) - Response: [200] str, 320 bytes

2022-01-19 10:26:20,352 (37a8) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.GEVI/messaging/function/X0FnZW50S2l0OkVyYXNlTWV0YWRhdGE/Y2VyZWFsMQoxCmxpc3QKMApyMAo/Y2VyZWFsMQoxCmRpY3QKMgpzNQpNb3ZpZXMxMAptZWRpYV90eXBlczQyCmNvbS5wbGV4YXBwLmFnZW50cy5HYXlBZHVsdDovLzU0MjY%40bGFuZz14bnM0Cmd1aWRyMAo_

2022-01-19 10:26:20,354 (37a8) : DEBUG (runtime:49) - Received packed state data (80 bytes)

2022-01-19 10:26:20,354 (37a8) : DEBUG (runtime:814) - Found route matching @.***_

2022-01-19 10:26:20,355 (37a8) : DEBUG (runtime:88) - Sending packed state data (104 bytes)

2022-01-19 10:26:20,355 (37a8) : DEBUG (runtime:924) - Response: [200] str, 16 bytes

— Reply to this email directly, view it on GitHub https://github.com/CodyBerenson/PGMA-Modernized/issues/119, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI3AKOWZEH3YTLPT5KPFE3UW24ZLANCNFSM5MJ6R45Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

jxakbtfocf commented 2 years ago

Thank you, here is the log.

com.plexapp.agents.GEVI.log

JPH71 commented 2 years ago

This one has really stumped me.... On my system it goes past and that error does not show up... Does this error occur for all titles you are matching or just this one?

if it is just this one, try opening a cmd prompt and type the name of the title afresh, copy it and then rename the file in windows. Also move the file to a new folder then try and refresh the metadata.

Here is my log to show you my results.... the agents GEVI and AEBNiii, however, do not find the title on their websites...

usually errors occur around curly apostrophes etc but yours look right....

let me know if other titles are affected.... then i will put some error messages into the program and we can further pinpoint where the error is exactly happening...

On Wed, 19 Jan 2022 at 14:39, jxakbtfocf @.***> wrote:

Thank you, here is the log.

com.plexapp.agents.GEVI.log https://github.com/CodyBerenson/PGMA-Modernized/files/7897915/com.plexapp.agents.GEVI.log

— Reply to this email directly, view it on GitHub https://github.com/CodyBerenson/PGMA-Modernized/issues/119#issuecomment-1016529307, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI3AKJMUVOBSN2PD5XN5UTUW3EIJANCNFSM5MJ6R45Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

jxakbtfocf commented 2 years ago

It does happen to every tittle I tried.

I inserted some log messages and found out where the code is breking. Its in the function getFilmInfo at ffprobe = subprocess.Popen(command, stderr=subprocess.PIPE, stdout=subprocess.PIPE )

jxakbtfocf commented 2 years ago

I have installed ffprobe and set a windows path for it and now I don't get the error anymore.

JPH71 commented 2 years ago

FFprobe is going to be retired very soon... Codeanator shared some code with me which uses Plex's inbuilt methods.... The code should be with Cody this weekend!

Cheers

Jason

On Wed, 19 Jan 2022 at 22:47, jxakbtfocf @.***> wrote:

Closed #119 https://github.com/CodyBerenson/PGMA-Modernized/issues/119.

— Reply to this email directly, view it on GitHub https://github.com/CodyBerenson/PGMA-Modernized/issues/119#event-5920993978, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI3AKLXTPOHKQMZFZID5M3UW45RTANCNFSM5MJ6R45Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>