Skip to content

Commit

Permalink
Merge pull request #112 from Brawl345/patch-1
Browse files Browse the repository at this point in the history
Add application/vnd.ms-excel as CSV mime type
  • Loading branch information
user234683 authored Dec 29, 2021
2 parents 000501e + 4cf92d3 commit 932fde4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ def import_subscriptions():

except (AssertionError, IndexError, defusedxml.ElementTree.ParseError) as e:
return '400 Bad Request: Unable to read opml xml file, or the file is not the expected format', 400
elif mime_type == 'text/csv':
elif mime_type in ('text/csv', 'application/vnd.ms-excel'):
content = file.read().decode('utf-8')
reader = csv.reader(content.splitlines())
channels = []
Expand Down

0 comments on commit 932fde4

Please sign in to comment.