Skip to content
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

Use Map.lookup instead #6

Closed
cloudcrypt opened this issue Aug 26, 2019 · 0 comments
Closed

Use Map.lookup instead #6

cloudcrypt opened this issue Aug 26, 2019 · 0 comments

Comments

@cloudcrypt
Copy link
Owner

cloudcrypt commented Aug 26, 2019

m3u8/src/M3U8.hs

Lines 22 to 27 in f44567f

show (Stream s url Video) = "Video Stream: "++(s Map.! "RESOLUTION")++(case Map.member "AUDIO" s of
True -> ", "++(s Map.! "AUDIO")
False -> "")
show (Stream s url Audio) = "Audio Stream: "++(case Map.member "AUDIO" s of
True -> s Map.! "AUDIO"
False -> url)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant