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] weibo add count metadata field #3305

Closed
afterdelight opened this issue Nov 26, 2022 · 6 comments
Closed

[feature request] weibo add count metadata field #3305

afterdelight opened this issue Nov 26, 2022 · 6 comments

Comments

@afterdelight
Copy link

afterdelight commented Nov 26, 2022

pls add media count metadata field

@InterruptSpeed
Copy link
Contributor

happy to take a look at this. please provide an example URL and the expected # of media that should be present. that will help test correctness.

@afterdelight
Copy link
Author

afterdelight commented Nov 26, 2022

F:\downloader\weibo>gallery-dl https://weibo.com/u/1501933722 -v
[gallery-dl][debug] Version 1.24.1-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] Configuration Files ['%APPDATA%\\gallery-dl\\config.json']
[gallery-dl][info] Starting DownloadJob for 'https://weibo.com/u/1501933722'
[weibo][info] Using WeiboUserExtractor for 'https://weibo.com/u/1501933722'
[weibo][info] Sleeping 4.00 seconds (extractor)
[weibo][info] Using WeiboFeedExtractor for 'https://weibo.com/u/1501933722?tabtype=feed'
[weibo][info] Sleeping 4.00 seconds (extractor)
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): weibo.com:443
[urllib3.connectionpool][debug] https://weibo.com:443 "GET /ajax/statuses/mymblog?uid=1501933722&feature=0 HTTP/1.1" 200 None
[weibo][info] Sleeping 1.00 seconds (download)
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): wx1.sinaimg.cn:443
[urllib3.connectionpool][debug] https://wx1.sinaimg.cn:443 "GET /large/5985b09agy1h81imkz346j20u011iq83.jpg HTTP/1.1" 200 200435
* .\sandymandy\20221111_4834734134007012_1.jpg
[weibo][info] Sleeping 1.00 seconds (download)
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): wx3.sinaimg.cn:443
[urllib3.connectionpool][debug] https://wx3.sinaimg.cn:443 "GET /large/5985b09agy1h81imlw6r8j20u011j78r.jpg HTTP/1.1" 200 175339
* .\sandymandy\20221111_4834734134007012_2.jpg
[weibo][info] Sleeping 1.00 seconds (download)
[urllib3.connectionpool][debug] https://wx1.sinaimg.cn:443 "GET /large/5985b09agy1h81imnobe6j20u011itd2.jpg HTTP/1.1" 200 170843
* .\sandymandy\20221111_4834734134007012_3.jpg
[weibo][info] Sleeping 1.00 seconds (download)
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): wx2.sinaimg.cn:443
[urllib3.connectionpool][debug] https://wx2.sinaimg.cn:443 "GET /large/5985b09agy1h81imocv4fj20u011iwjp.jpg HTTP/1.1" 200 202720
* .\sandymandy\20221111_4834734134007012_4.jpg
[weibo][info] Sleeping 1.00 seconds (download)
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): wx4.sinaimg.cn:443
[urllib3.connectionpool][debug] https://wx4.sinaimg.cn:443 "GET /large/5985b09agy1h81imjrqbzj20u011i78i.jpg HTTP/1.1" 200 166079
* .\sandymandy\20221111_4834734134007012_5.jpg
[weibo][info] Sleeping 1.00 seconds (download)
[urllib3.connectionpool][debug] https://wx2.sinaimg.cn:443 "GET /large/5985b09agy1h81imp0ifmj20u011jgqf.jpg HTTP/1.1" 200 187880
* .\sandymandy\20221111_4834734134007012_6.jpg

@InterruptSpeed
Copy link
Contributor

seems a login is needed to see the content. afraid i can't help after all. sry.

@afterdelight
Copy link
Author

its ok, no problem

mikf added a commit that referenced this issue Dec 1, 2022
or '{status[count]}', as most metadata for weibo is inside 'status'
@afterdelight
Copy link
Author

got [weibo][error] FilenameFormatError: Applying filename format string failed (NameError: name 'count' is not defined)
with both
"status[count] > 1" : "{status[date]:%Y%m%d}_{status[id]}_{num}.{extension}"
and
"count > 1" : "{status[date]:%Y%m%d}_{status[id]}_{num}.{extension}"

@mikf
Copy link
Owner

mikf commented Dec 2, 2022

"status['count'] > 1" : "{status[date]:%Y%m%d}_{status[id]}_{num}.{extension}"

@mikf mikf closed this as completed Dec 2, 2022
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

3 participants