diff --git a/redsea/cli.py b/redsea/cli.py index 93f3f70..1710e5d 100644 --- a/redsea/cli.py +++ b/redsea/cli.py @@ -58,8 +58,12 @@ def parse_media_option(mo): if not components or len(components) <= 2: print('Invalid URL: ' + m) exit() - type_ = components[1] - id_ = components[2] + if len(components) == 5: + type_ = components[3] + id_ = components[4] + else: + type_ = components[1] + id_ = components[2] if type_ == 'album': type_ = 'a' elif type_ == 'track':