mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-01 15:20:27 +01:00
[ie/instagram] Fix extraction of older private posts (#12451)
Authored by: bashonly
This commit is contained in:
parent
a90641c836
commit
a59abe0636
@ -33,8 +33,10 @@ def _pk_to_id(media_id):
|
|||||||
|
|
||||||
|
|
||||||
def _id_to_pk(shortcode):
|
def _id_to_pk(shortcode):
|
||||||
"""Covert a shortcode to a numeric value"""
|
"""Convert a shortcode to a numeric value"""
|
||||||
return decode_base_n(shortcode[:11], table=_ENCODING_CHARS)
|
if len(shortcode) > 28:
|
||||||
|
shortcode = shortcode[:-28]
|
||||||
|
return decode_base_n(shortcode, table=_ENCODING_CHARS)
|
||||||
|
|
||||||
|
|
||||||
class InstagramBaseIE(InfoExtractor):
|
class InstagramBaseIE(InfoExtractor):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user