Skip to content

How to change path folder? #108

Answered by Dineshkarthik
galeka asked this question in Q&A
Aug 29, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Of course, you can.
Change the THIS_DIR variable to the absolute path of the folder location in line #L112 and #L120 in media_downloader.py

Ex:

# L112
file_name: str = os.path.join(
    "/home/path/to/folder",
    _type,
    "voice_{}.{}".format(dt.utcfromtimestamp(media_obj.date).isoformat(), file_format),
)
# L120
file_name = os.path.join(
    "/home/path/to/folder", _type, getattr(media_obj, "file_name", None) or ""
)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rmdes
Comment options

@rmdes
Comment options

@Dineshkarthik
Comment options

@rmdes
Comment options

Answer selected by galeka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants