mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
revert _id_to_pk
change
Authored by: bashonly
This commit is contained in:
parent
b2c11e33f4
commit
aa6d9c5fe3
1 changed files with 2 additions and 4 deletions
|
@ -33,10 +33,8 @@ def _pk_to_id(media_id):
|
||||||
|
|
||||||
|
|
||||||
def _id_to_pk(shortcode):
|
def _id_to_pk(shortcode):
|
||||||
"""Convert a shortcode to a numeric value"""
|
"""Covert a shortcode to a numeric value"""
|
||||||
if len(shortcode) > 28:
|
return decode_base_n(shortcode[:11], table=_ENCODING_CHARS)
|
||||||
shortcode = shortcode[:-28]
|
|
||||||
return decode_base_n(shortcode, table=_ENCODING_CHARS)
|
|
||||||
|
|
||||||
|
|
||||||
class InstagramBaseIE(InfoExtractor):
|
class InstagramBaseIE(InfoExtractor):
|
||||||
|
|
Loading…
Reference in a new issue