[x] Searched the bugtracker for similar issues including closed ones
Purpose of your issue?
[x] Bug report (encountered problems/errors)
[ ] Feature request (request for a new functionality)
[ ] Question
[x] Other
The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.
For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.
Because the file extension is no longer correct and ? is an illegal filename character this will cause an error while trying to download the replay or otherwise merge the video and audio file with FFmpeg.
Solution
I believe this invalid string first appears in replay.py#L125 and may be solved by using .split('?')[0] on the video_stream (and maybe audio_stream) variables.
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like so [x] no spaces).Before submitting an issue make sure you have:
Purpose of your issue?
The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.
For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.
Paste the output of
python -V
here:Code: Python 3.5.4
https://github.com/notcammy/PyInstaLive/blob/2.5.3/pyinstalive/downloader.py#L298
Error/Log:
Describe your issue
Instagram may return stream filename with a certain string after the file extension like
33148056_118291655718614_8624200296354021376_n.mp4?_nc_eui2=AeEFp8QXDnJH68Zmeq3uV-YC4ZJS9jZFgG4R4fKgLlsUk9xYeM2df3qZjWuuyecfig57tNHBhMuqyeEG8x2gZVkJ
.Issue is first encountered here: https://github.com/notcammy/PyInstaLive/issues/16.
Because the file extension is no longer correct and
?
is an illegal filename character this will cause an error while trying to download the replay or otherwise merge the video and audio file with FFmpeg.Solution
I believe this invalid string first appears in replay.py#L125 and may be solved by using
.split('?')[0]
on thevideo_stream
(and maybeaudio_stream
) variables.