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

[Instagram] gallery-dl stopped recognizig post date #2667

Closed
KonoVitoDa opened this issue Jun 10, 2022 · 3 comments
Closed

[Instagram] gallery-dl stopped recognizig post date #2667

KonoVitoDa opened this issue Jun 10, 2022 · 3 comments

Comments

@KonoVitoDa
Copy link

I think it started today, after upgrading to the last version. Here's the outputs. Note that 'date' value is 'None':

>>gallery-dl https://www.instagram.com/p/Ceb_ywNrfqN/
[instagram][error] FilenameFormatError: Applying filename format string failed (TypeError: unsupported format string passed to NoneType.__format__)

>>gallery-dl --verbose -K -- "https://www.instagram.com/p/Ceb_ywNrfqN/"
[gallery-dl][debug] Version 1.22.1
[gallery-dl][debug] Python 3.10.2 - Windows-10-10.0.19044-SP0
[gallery-dl][debug] requests 2.27.1 - urllib3 1.26.8
[gallery-dl][debug] Starting KeywordJob for 'https://www.instagram.com/p/Ceb_ywNrfqN/'
[instagram][debug] Using InstagramPostExtractor for 'https://www.instagram.com/p/Ceb_ywNrfqN/'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): i.instagram.com:443
[urllib3.connectionpool][debug] https://i.instagram.com:443 "GET /api/v1/media/2854155353542490765/info/ HTTP/1.1" 200 5770
Keywords for directory names:
-----------------------------
category
  instagram
fullname
  Naiichiru ♡ Dokomi 2022
owner_id
  1603742415
post_id
  2854155353542490765
post_shortcode
  Ceb_ywNrfqN
sidecar_media_id
  2854155353542490765
sidecar_shortcode
  Ceb_ywNrfqN
subcategory
  post
username
  naiichiru

Keywords for filenames and --filter:
------------------------------------
category
  instagram
date
  None
display_url
  https://instagram.fnat1-1.fna.fbcdn.net/v/t51.2885-15/285919659_808990150486957_3933087243939618893_n.jpg?stp=dst-jpg_e35&_nc_ht=instagram.fnat1-1.fna.fbcdn.net&_nc_cat=101&_nc_ohc=kcqXFb2AP54AX_Mo81q&edm=ALQROFkBAAAA&ccb=7-5&ig_cache_key=Mjg1NDE1NTM0OTE0NjkzMTIzNg%3D%3D.2-ccb7-5&oh=00_AT8d_JVz1Qk8W50N61MIHJqpzmitbD6xSsXOMT2ACNkzgw&oe=62A92975&_nc_sid=30a2ef
extension
  jpg
filename
  285919659_808990150486957_3933087243939618893_n
fullname
  Naiichiru ♡ Dokomi 2022
height
  1800
media_id
  2854155349146931236
num
  1
owner_id
  1603742415
post_id
  2854155353542490765
post_shortcode
  Ceb_ywNrfqN
shortcode
  Ceb_ysHrxAk
sidecar_media_id
  2854155353542490765
sidecar_shortcode
  Ceb_ywNrfqN
subcategory
  post
tagged_users[]
username
  naiichiru
video_url
  None
width
  1440

Btw, the filename pattern in my config file is:

"filename": "{username}-{date:%Y%m%d_%H%M%S}-{post_shortcode}{num:?_//}.{extension}",
@KonoVitoDa
Copy link
Author

Anyone?

@mikf
Copy link
Owner

mikf commented Jun 11, 2022

I think this has already been fixed in commit 47a92c8 (#2660)

This must have been caused by changing the API endpoint for single posts in 2fb0193, which also resulted in higher-resolution photos (#2666)

$ gallery-dl -vK https://www.instagram.com/p/Ceb_ywNrfqN/
[gallery-dl][debug] Version 1.22.2-dev - Git HEAD: 64956e47
...
date
  2022-06-05 20:44:13

$ git checkout v1.22.1
HEAD is now at c2d11716 release version 1.22.1

$ gallery-dl -vK https://www.instagram.com/p/Ceb_ywNrfqN/
[gallery-dl][debug] Version 1.22.1 - Git HEAD: c2d11716
...
date
  None

@KonoVitoDa
Copy link
Author

Thanks!

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