Skip to content

Commit 7260c5c

Browse files
committed
Readme: added logo
1 parent 761d6bc commit 7260c5c

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

README.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,11 @@
77

88
[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/donate/?hosted_button_id=TSPDD3ZAAH24C)
99

10-
```bash
11-
███╗ ███╗ ██████╗ ██╗ ██╗ █████╗
12-
████╗ ████║ ╚════██╗ ██║ ██║ ██╔══██╗
13-
██╔████╔██║ █████╔╝ ██║ ██║ ╚█████╔╝
14-
██║╚██╔╝██║ ╚═══██╗ ██║ ██║ ██╔══██╗
15-
██║ ╚═╝ ██║ ██████╔╝ ╚██████╔╝ ╚█████╔╝
16-
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚════╝
17-
DECODER
18-
```
10+
<p align="center">
11+
<img src="m3u8decoder.png" alt="M3U8Decoder: Flexible M3U8 playlist parsing for Swift." width="350">
12+
</p>
1913

20-
# M3U8Decoder
14+
# M3U8Decoder
2115

2216
Decoder for Media Playlist of [HTTP Live Streaming](https://datatracker.ietf.org/doc/html/rfc8216) using `Decodable` protocol.
2317

@@ -115,7 +109,8 @@ decoder.decode(MasterPlaylist.self, from: url) { result in
115109
The strategy to use for automatically changing the value of keys before decoding.
116110

117111
### `snakeCase`
118-
Converting playlist tag and attribute names to snake case. It's default strategy.
112+
113+
It's **default** strategy to convert playlist tag and attribute names to snake case.
119114

120115
1. Converting keys to lower case.
121116
2. Replaces all `-` with `_`.
@@ -193,6 +188,8 @@ let m3u8 = """
193188
"""
194189

195190
let decoder = M3U8Decoder()
191+
192+
// `EXT-X-INDEPENDENT-SEGMENTS` bacomes `independent_segments`
196193
decoder.keyDecodingStrategy = .custom { key in
197194
key
198195
.lowercased()
@@ -210,7 +207,7 @@ print(playlist.media[0].group_id) // Prints "cc"
210207

211208
## Predefined types
212209

213-
There are a list of predifined sctructs with `snakeCase` key coding strategy for all medata tags and attributes from of [HTTP Live Streaming](https://datatracker.ietf.org/doc/html/rfc8216) document that can be used to decode playlists.
210+
There are a list of default predifined sctructs (with `snakeCase` key coding strategy) for all medata tags and attributes from of [HTTP Live Streaming](https://datatracker.ietf.org/doc/html/rfc8216) document that can be used to decode playlists.
214211

215212
Type | Tag/Attribute | Description
216213
-- | -- | --

m3u8decoder.png

101 KB
Loading

0 commit comments

Comments
 (0)