Rutger Schoorstra
13405a09eb
Upgraded docs to Nom 5
2020-03-07 10:23:06 +01:00
Vadim Getmanshchuk
b810687652
fixed issue with #EXTINF without titles
...
in #EXTINF tag, when comma `,` after segment duration immediately follows by `\n` the `title` is not getting populated and is not printed with `writeln!`
The problem is created by the nom 5 conversion, where `take_until_either_and_consume!` macro was replaced with `is_not!` + `take!(1)`. However, in case when `opt!(take_until_either_and_consume!` is used, everything gets way too hairy. I couldn't to expressed that in a fairly elegant manner and instead fixed the data presentation, when a new manifest is produced. While storing `\n` in a form of `title` is a nice hack, I'm also convinced this is a better approach to data handling.
2020-03-06 21:52:22 -08:00
Vadim Getmanshchuk
4ed378772b
added forgotten use
for map
2020-03-04 20:12:50 -08:00
Vadim Getmanshchuk
350109e29a
map cleanup, leftovers
2020-02-26 22:57:05 -08:00
Vadim Getmanshchuk
f7587aa264
cleanup, fn map renamed
...
Local `fn map` -> `fn extmap` that allows to use map from Nom directly, without `nom::combinator::`
2020-02-26 22:52:20 -08:00
Vadim Getmanshchuk
e4e1717b0a
Back ported 1.0.6 release
2020-02-26 17:17:13 -08:00
Vadim Getmanshchuk
b9d377bfa4
Upgraded macros to Nom 5
...
Changes:
IResult::Done - IResult::Ok
chain! -> do_parse!
slightly different syntax with `?` -> opt!
digit -> digit1
space? -> space0
multispace? -> multispace0
many0!() -> many0!(complete!())
take_until_either! -> is_not!
take_until_and_consume! -> take_until! + take!(1)
take_until_either_and_consume! -> is_not! + take!(1)
2020-02-26 17:05:14 -08:00
Vadim Getmanshchuk
fc9f45dd18
Fix tag duplication
...
The fix is addressing duplication for #EXT-X-KEY and #EXT-X-MAP tags in a media manifest produced
2020-02-26 16:21:06 -08:00
Vadim Getmanshchuk
ed0d35b3a3
Update README.md
2020-02-26 16:15:27 -08:00
Vadim Getmanshchuk
e982070d59
Version update in README to match the current
...
The current is 1.0.6. It should match one with the README
2020-02-26 12:17:45 -08:00
Rutger Schoorstra
43c7321fb2
Version 1.0.6
2020-02-15 16:02:58 +01:00
Rutger Schoorstra
31e78801f9
CODECS should be optional
...
https://developer.apple.com/documentation/http_live_streaming/example_playlists_for_http_live_streaming/creating_a_master_playlist
> While the CODECS parameter is optional, every EXT-X-STREAM-INF tag should include the attribute.
2020-02-15 16:02:45 +01:00
Rutger Schoorstra
03ec1a4544
Added quick parse roundtrip test
2020-02-15 16:01:30 +01:00
Rutger Schoorstra
b2150f26e5
Remove unneeded macro_use
2020-02-15 16:00:10 +01:00
rutgersc
e594ec5792
Merge pull request #7 from vagetman/master
...
A comma added before the URI for fn write_to
2020-02-15 15:47:45 +01:00
Vadim Getmanshchuk
af15863688
Done -> Ok in examples
2020-02-12 16:35:31 -08:00
Rogier 'DocWilco' Mulhuijzen
67eebd17a0
Done is now Ok, map works a little different
2020-02-12 14:38:47 -08:00
Vadim Getmanshchuk
ca07767eb4
Update Cargo.toml
...
upped nom dependency to 5.1.0
2020-02-12 12:19:40 -08:00
Vadim Getmanshchuk
22571a3404
A stub on updating nom to 5.1.0 version
2020-02-12 12:04:20 -08:00
vagetman
279fefef72
A comma added before the URI for fn write_to
2020-02-11 12:43:06 -08:00
Rutger Schoorstra
9d81ce7194
Version Version 1.0.5
2019-04-26 19:49:46 +02:00
rutgersc
5389f25f6f
Merge pull request #5 from gurry/master
...
Fixed a bug where #EXT-X-MEDIA-SEQUENCE tag was being interpreted as #EXT-X-MEDIA
2019-04-26 19:43:36 +02:00
Gurinder Singh
ccf25fefcf
Fixed a bug where #EXT-X-MEDIA-SEQUENCE tag was being interpreted as #EXT-X-MEDIA
2019-03-08 11:22:34 +05:30
rutgersc
3c8268eace
Merge pull request #3 from gurry/master
...
Implemented Clone on all structs
2018-11-29 19:06:59 +01:00
Gurinder Singh
759809b2b4
Implemented Clone on all structs
2018-11-26 07:13:42 +05:30
rutgersc
b3bdaa133c
Merge pull request #2 from philn/master
...
Make tests run on non-windows machines
2017-12-02 15:24:41 +01:00
Philippe Normand
b5b950150f
Make tests run on non-windows machines
...
Hardcoding the windows path separator isn't a good idea for portability :)
2017-11-11 13:02:04 +01:00
Rutger
e18e1d5cd0
Version 1.0.4
2017-04-19 09:32:53 +02:00
Rutger
6032301143
Delete println!
2017-04-19 09:05:13 +02:00
Rutger
7583aaccba
Fix doc tests
2017-02-17 17:22:09 +01:00
Rutger
e3d0cb8cff
Added example of how to create & write a playlist
2017-02-17 15:16:08 +01:00
Rutger
a900b5471f
Version 1.0.3
2017-02-17 14:53:02 +01:00
Rutger
c336b89981
Added feature: writing playlists back to file
2017-02-17 14:50:50 +01:00
Rutger
6286cddc04
Remove unwrap from version tag
2017-02-16 11:17:02 +01:00
Rutger
333ac3ec46
Version 1.0.2
2016-09-10 13:27:23 +02:00
Rutger
d7c452fe78
Fixed a bug where the parser fails when the playlist does not end with a newline.
2016-09-10 13:22:13 +02:00
Rutger
fe2ceb87dd
fixed README
2016-06-03 21:46:36 +02:00
Rutger
f08d22d030
Added documentation links
2016-06-03 21:39:36 +02:00
Rutger
a81a5e582b
LICENSE
2016-06-03 21:25:34 +02:00
Rutger
0828c51e71
extra crates.io metadata
2016-06-03 21:12:53 +02:00
Rutger
41ce460d90
Version 1.0.0
2016-06-03 20:56:45 +02:00
rutgersc
d826f75f2a
Initial commit
2016-06-03 20:40:21 +02:00