-
Notifications
You must be signed in to change notification settings - Fork 474
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
Editing value in playlist.segment_map["uri"] is ignored by parser #234
Comments
@viktorfreiman sorry for taking so long. We're investigating. |
It happens because
Sorry, but could you give me an example of how this could be useful? |
Hi @mauricioabreu, Great to see that you are still working and adding new stuff to the lib. I bypassed the the issue with a hacky string replace. It worked but I would be nice to get the lib to do it. Like my exemple before I don't want it just move the init to the next segment I just want to change the the 0-index url init.mp4 |
Editing value in
playlist.segment_map["uri"]
is ignored by parserm3u8-lib version: 0.7.1
There is no diff between
normal_sub_v8.m3u8
andoutput.m3u8
To edit the init #EXT-X-MAP I have found that I need to use the
playlist.segments[0].init_section.uri = "NEW-INIT-MAP.mp4"
to make it work
But the problem is that you need to edit for every segment
and if you don't do it you will get the old #EXT-X-MAP on the next segment
Also;
Is there a way on removing a #EXT-X-MAP from the segment m3u8?
I tried to use
del playlist.segments[1].init_section
but I get a AttributeErrorWhen I try to run
playlist.dump("OUT_normal_sub_v8.m3u8")
The text was updated successfully, but these errors were encountered: