--list flag accepts only text files using mimetypes (#414)

* --list flag accepts only text files using mimetypes

* Refactored for consistency

* Workaround to make tests pass
This commit is contained in:
Manveer Basra
2018-10-30 02:00:35 -04:00
committed by Ritiek Malhotra
parent be4bb25c96
commit 20b5e44ed4
3 changed files with 12 additions and 7 deletions

View File

@@ -48,8 +48,8 @@ def test_album(tmpdir):
def test_m3u(tmpdir):
expect_m3u = (
"#EXTM3U\n\n"
"#EXTINF:47,Eminem - Encore - Curtains Up\n"
"http://www.youtube.com/watch?v=0BZ6JYwrl2Y\n"
"#EXTINF:32,Eminem - Curtains Up (Skit) - The Eminem Show (2002) w/ Lyrics\n"
"http://www.youtube.com/watch?v=HbMJGI1m--Y\n"
"#EXTINF:226,Alan Walker - Spectre [NCS Release]\n"
"http://www.youtube.com/watch?v=AOeY-nDp7hI\n"
)