From 8012bd242425cd611a4008e1108e1421a9a2a129 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 5 Mar 2014 14:02:14 +0100 Subject: [PATCH] [generic] Get a better ID --- youtube_dl/extractor/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)