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

[feature request] show sleep delay for sleep and sleep-extractor #2982

Closed
afterdelight opened this issue Sep 29, 2022 · 6 comments
Closed

[feature request] show sleep delay for sleep and sleep-extractor #2982

afterdelight opened this issue Sep 29, 2022 · 6 comments

Comments

@afterdelight
Copy link

afterdelight commented Sep 29, 2022

When downloading instagram stories, it doesnt show sleep delay on verbose like sleep-request does

log:

[gallery-dl][debug] Version 1.23.2-dev
[gallery-dl][debug] Python 3.10.4 - Windows-10-10.0.19043-SP0
[gallery-dl][debug] requests 2.27.1 - urllib3 1.26.9
[gallery-dl][debug] Starting DownloadJob for 'https://www.instagram.com/pusparinaoeniasih'
[instagram][debug] Using InstagramUserExtractor for 'https://www.instagram.com/pusparinaoeniasih'
[instagram][debug] Using InstagramStoriesExtractor for 'https://www.instagram.com/stories/pusparinaoeniasih/'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): i.instagram.com:443
[urllib3.connectionpool][debug] https://i.instagram.com:443 "GET /api/v1/users/web_profile_info/?username=pusparinaoeniasih HTTP/1.1" 200 35317
[instagram][debug] Sleeping for 8.496 seconds
[urllib3.connectionpool][debug] https://i.instagram.com:443 "GET /api/v1/feed/reels_media/?reel_ids=238851821 HTTP/1.1" 200 8210
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): instagram.fcgk37-2.fna.fbcdn.net:443
[urllib3.connectionpool][debug] https://instagram.fcgk37-2.fna.fbcdn.net:443 "GET /o1/v/t16/f1/m78/BA43D0F8EF177A2914733617744D96BA_video_dashinit.mp4?efg=eyJxZV9ncm91cHMiOiJbXCJpZ193ZWJfZGVsaXZlcnlfdnRzX290ZlwiXSIsInZlbmNvZGVfdGFnIjoidnRzX3ZvZF91cmxnZW4uNzIwLnN0b3J5LmJhc2VsaW5lIn0&_nc_ht=instagram.fcgk37-2.fna.fbcdn.net&_nc_cat=101&vs=5293481300762132_4013182434&_nc_vs=HBksFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyL0JBNDNEMEY4RUYxNzdBMjkxNDczMzYxNzc0NEQ5NkJBX3ZpZGVvX2Rhc2hpbml0Lm1wNBUAAsgBABUAGCRHQ1JSYWhKQ2xMUXhzY1lCQUo2dDBCdjJDM2h6YnBrd0FBQUYVAgLIAQAoABgAGwGIB3VzZV9vaWwBMRUAACbsu8SXkvbmPxUCKAJDMywXQC4AAAAAAAAYEmRhc2hfYmFzZWxpbmVfMV92MREAdegHAA%3D%3D&_nc_rid=47f9c994e0&ccb=9-4&oe=6337A0D1&oh=00_AT-SEUSHLJme2slo1w1-cvkZ07AFUtHrFv58s649VR5zIg&_nc_sid=276363 HTTP/1.1" 200 365983
* .\pusparinaoeniasih [238851821]\Stories\20220928_CjCoTmXjjx0.mp4
[urllib3.connectionpool][debug] https://instagram.fcgk37-2.fna.fbcdn.net:443 "GET /v/t51.2885-15/308567344_125514500269922_7764904114754515814_n.jpg?stp=dst-jpg_e35&_nc_ht=instagram.fcgk37-2.fna.fbcdn.net&_nc_cat=102&_nc_ohc=TAOxD5c4E6kAX9ytnLF&edm=ANmP7GQBAAAA&ccb=7-5&ig_cache_key=MjkzNzM2NzYxOTk4MTY4NDQ3MQ%3D%3D.2-ccb7-5&oh=00_AT8LpDF5Ob8CUdDDlteDputHWjwO2UW6R3ZyaRZy-iZUNg&oe=63373000&_nc_sid=276363 HTTP/1.1" 200 139741
* .\pusparinaoeniasih [238851821]\Stories\20220928_CjDoEmbvi73.jpg
[urllib3.connectionpool][debug] https://instagram.fcgk37-2.fna.fbcdn.net:443 "GET /o1/v/t16/f1/m78/034A2CDCE9BD9D2CAEC8D5F8CCD689BB_video_dashinit.mp4?efg=eyJxZV9ncm91cHMiOiJbXCJpZ193ZWJfZGVsaXZlcnlfdnRzX290ZlwiXSIsInZlbmNvZGVfdGFnIjoidnRzX3ZvZF91cmxnZW4uNzIwLnN0b3J5LmJhc2VsaW5lIn0&_nc_ht=instagram.fcgk37-2.fna.fbcdn.net&_nc_cat=100&vs=424912842894275_1715732321&_nc_vs=HBksFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyLzAzNEEyQ0RDRTlCRDlEMkNBRUM4RDVGOENDRDY4OUJCX3ZpZGVvX2Rhc2hpbml0Lm1wNBUAAsgBABUAGCRHQWFJY3hJNDdHV2hZblFGQU5GVDBaOWo1a0I3YnBrd0FBQUYVAgLIAQAoABgAGwGIB3VzZV9vaWwBMRUAACbiq%2BXpl%2F7sPxUCKAJDMywXQDOZmZmZmZoYEmRhc2hfYmFzZWxpbmVfMV92MREAdegHAA%3D%3D&_nc_rid=47f9cb9726&ccb=9-4&oe=63371CF0&oh=00_AT-EoyADgBm8Ep2T_Ouixc9at_6KZPyGZ0cFybmJPQMnRA&_nc_sid=276363 HTTP/1.1" 200 4546230
* .\pusparinaoeniasih [238851821]\Stories\20220928_CjDoeLHj_f2.mp4
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): instagram.fcgk37-1.fna.fbcdn.net:443
[urllib3.connectionpool][debug] https://instagram.fcgk37-1.fna.fbcdn.net:443 "GET /v/t51.2885-15/308965132_2367621033415469_4983520424911892417_n.jpg?stp=dst-jpg_e35&_nc_ht=instagram.fcgk37-1.fna.fbcdn.net&_nc_cat=105&_nc_ohc=nh_p63bXIo0AX-uGfsH&edm=ANmP7GQBAAAA&ccb=7-5&ig_cache_key=MjkzNzY4MzI5NTE4NzM5MjMwMg%3D%3D.2-ccb7-5&oh=00_AT94Bgu_mMcAL22cPakRxjTToKWiwGYajN_lP9gk-qmznw&oe=633783E2&_nc_sid=276363 HTTP/1.1" 200 223254
* .\pusparinaoeniasih [238851821]\Stories\20220929_CjEv2R4Plcu.jpg

instagram config:

"sleep-request": [6,9],
"sleep": [6,9],
"sleep-extractor": [10,15]
@afterdelight afterdelight changed the title [QUESTION] Instagram add delay in between downloads [BUG] Instagram download doesnt show sleep delay Sep 29, 2022
@mikf
Copy link
Owner

mikf commented Sep 29, 2022

I wouldn't call this a bug, it has always been this way. sleep-request can vary quite a lot in its waiting times due to its implementation, and therefore got a debug message for when it causes the process to sleep. Before c9e6693, sleep and sleep-request always had the same, constant value for their delays, so them having any output was unnecessary, I thought.

@mikf mikf changed the title [BUG] Instagram download doesnt show sleep delay [feature request] show sleep delay for sleep and sleep-extractor Sep 29, 2022
@afterdelight
Copy link
Author

afterdelight commented Sep 30, 2022

Right, but where can i find sleep and sleep-extractor int the py's? i only found sleep-request in common.py extractor

@mikf
Copy link
Owner

mikf commented Sep 30, 2022

$ grep '"sleep"' *.py */*.py
job.py:        self.sleep = util.build_duration_func(cfg("sleep"))
option.py:        dest="sleep", metavar="SECONDS", action=ConfigAction,

$ grep '"sleep-extractor"' *.py */*.py
job.py:        sleep = util.build_duration_func(extractor.config("sleep-extractor"))
job.py:            self.extractor.config("sleep-extractor"))
option.py:        dest="sleep-extractor", metavar="SECONDS", action=ConfigAction,

@afterdelight
Copy link
Author

i mean where can i put the codes if i want to turn on the debug info for sleep and sleep-extractor

@mikf
Copy link
Owner

mikf commented Sep 30, 2022

There is currently no debug info for sleep and sleep-extractor.
I thought it getting added is the whole point of this issue.

@afterdelight
Copy link
Author

afterdelight commented Sep 30, 2022

Yeah, sorry. I was drunk :S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants