aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/eporner.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/eporner.py')
-rw-r--r--youtube_dl/extractor/eporner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/eporner.py b/youtube_dl/extractor/eporner.py
index fe42821c7..c050bf9df 100644
--- a/youtube_dl/extractor/eporner.py
+++ b/youtube_dl/extractor/eporner.py
@@ -4,6 +4,7 @@ from __future__ import unicode_literals
import re
from .common import InfoExtractor
+from ..compat import compat_str
from ..utils import (
encode_base_n,
ExtractorError,
@@ -54,7 +55,7 @@ class EpornerIE(InfoExtractor):
webpage, urlh = self._download_webpage_handle(url, display_id)
- video_id = self._match_id(urlh.geturl())
+ video_id = self._match_id(compat_str(urlh.geturl()))
hash = self._search_regex(
r'hash\s*:\s*["\']([\da-f]{32})', webpage, 'hash')