Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_ph_urls.py always fails to find files #25

Open
SomeAnon7 opened this issue Mar 20, 2022 · 3 comments
Open

set_ph_urls.py always fails to find files #25

SomeAnon7 opened this issue Mar 20, 2022 · 3 comments

Comments

@SomeAnon7
Copy link

Fresh Stash install.

To replicate:
Added one single video by URL and one channel download to the urls.txt
Ran the Download portion of the plug-in
Ran the Tag Downloads - populated the tags on the single URL video.
Ran the set_ph_urls - No updates to the files, logs show zero files found.

Log entries.
`Debug
Plugin returned: ok

Info
[Plugin / Set PH Urls] Set urls for 0 scene(s)

Debug
[Plugin / Set PH Urls] Regex found a total of 0 scene(s)

Debug
[Plugin / Set PH Urls] Regex found 0 scene(s) on page 1

Debug
[Plugin / Set PH Urls] Using stash GraphQl endpoint at http://localhost:9999/graphql`

Confirmed the filenames pulled should pass the regex, phXXXXXXXXXXXXX.mp4 titles. Nothing modified in the scripts outside of the download location being set, the python3 change as noted in the readme. Tested a few options in the yt-dl config.ini with no luck either populating the performer info, urls for the channel dump, etc.

@niemands
Copy link
Owner

niemands commented Apr 5, 2022

Sorry that this took so long, but this is now fixed in the newest release

@niemands niemands closed this as completed Apr 5, 2022
@SomeAnon7
Copy link
Author

SomeAnon7 commented Apr 5, 2022

Thanks for the followup.

Still experiencing the same behaviour. No URLs being backfilled.
Removed the plugins completely and reinstalled.
Removed all content from the instance and re-downloaded via the yt-dl.

Debug   
Plugin returned: ok

2022-04-05 16:53:31
Info    
[Plugin / Set PH Urls] Set urls for 0 scene(s)

2022-04-05 16:53:31
Debug   
[Plugin / Set PH Urls] Regex found a total of 0 scene(s)

2022-04-05 16:53:31
Debug   
[Plugin / Set PH Urls] Regex found 0 scene(s) on page 1

2022-04-05 16:53:31
Trace   
SQL: SELECT DISTINCT scenes.id FROM scenes WHERE ((scenes.path IS NOT NULL AND scenes.path regexp ?)) ORDER BY scenes.title COLLATE NATURAL_CS ASC, bitrate DESC, framerate DESC, scenes.rating DESC, scenes.duration DESC LIMIT 100 OFFSET 0 , args: [(?i)^(?:.+-)?ph[a-z0-9]{13}\.(?:[mM][pP]4|[wW][mM][vV])$]

2022-04-05 16:53:31
Trace   
SQL: SELECT COUNT(temp.id) as total FROM (SELECT DISTINCT scenes.id FROM scenes WHERE ((scenes.path IS NOT NULL AND scenes.path regexp ?))) as temp, args: [(?i)^(?:.+-)?ph[a-z0-9]{13}\.(?:[mM][pP]4|[wW][mM][vV])$]

2022-04-05 16:53:31
Debug   
[Plugin / Set PH Urls] Using stash GraphQl endpoint at http://localhost:9999/graphql```

@SomeAnon7
Copy link
Author

@niemands
Did a bit of poking and prodding at the script.
This seems to work in my tests solving both the regex not catching the yt-dl'd content and solving the next issue I encountered which was it never writing the URL and hitting your IndexError in that block once I had it finding the files.

set_ph_urls.py_SA.zip

Hoping this solution helps with your amazing plugin.

@niemands niemands reopened this Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants