diff --git a/.gitignore b/.gitignore
index 8c1637c..1d96c27 100644
--- a/.gitignore
+++ b/.gitignore
@@ -108,3 +108,4 @@ venv.bak/
# mypy
.mypy_cache/
+.upload_to_pypi.bat
\ No newline at end of file
diff --git a/redvid/__init__.py b/redvid/__init__.py
index 64e7d5a..77657b9 100644
--- a/redvid/__init__.py
+++ b/redvid/__init__.py
@@ -5,4 +5,4 @@
__url__ = 'https://github.com/elmoiv/redvid'
__description__ = 'Smart downloader for Reddit hosted videos'
__license__ = 'GPL-v3.0'
-__version__ = '2.0.3'
\ No newline at end of file
+__version__ = '2.0.4'
\ No newline at end of file
diff --git a/redvid/tools.py b/redvid/tools.py
index f0b2944..02d8377 100644
--- a/redvid/tools.py
+++ b/redvid/tools.py
@@ -72,14 +72,15 @@ def vcfRemover(BaseUrls, rgx):
def mpdParse(mpd):
# v2.0.1: Fix for new reddit mechanism
tags = r'(DASH_)(?!vtt)(.*?)(\.mp4)?'
- re_tags = re.findall(tags, mpd)
+ tags_a = r'(audio)(\.mp4)?'
+ re_tags = re.findall(tags, mpd) + re.findall(tags_a, mpd)
# v1.1.1: Fix Base Urls from vcf.redd.it
if any('vcf.redd.it' in j(i) for i in re_tags):
re_tags = vcfRemover(re_tags, tags)
# Filter audio tag
- audio_tags = [tag for tag in re_tags if 'audio' in tag[1].lower()]
+ audio_tags = [tag for tag in re_tags if 'audio' in j(tag).lower()]
video_tags = list(set(re_tags) - set(audio_tags))
tag_aud = audio_tags[-1] if audio_tags else None