From: Philipp Hagemeister Date: Wed, 5 Mar 2014 13:02:14 +0000 (+0100) Subject: [generic] Get a better ID X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=8012bd242425cd611a4008e1108e1421a9a2a129;p=youtube-dl [generic] Get a better ID --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index dd60bc418..7b52dacd9 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -223,7 +223,7 @@ class GenericIE(InfoExtractor): else: assert ':' in default_search return self.url_result(default_search + url) - video_id = os.path.splitext(url.split('/')[-1])[0] + video_id = os.path.splitext(url.rstrip('/').split('/')[-1])[0] self.to_screen('%s: Requesting header' % video_id)