[tnaflixnetwork] Fallback age limit to 18
authorSergey M․ <dstftw@gmail.com>
Sat, 27 Feb 2016 10:59:10 +0000 (16:59 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 27 Feb 2016 10:59:10 +0000 (16:59 +0600)
youtube_dl/extractor/tnaflix.py

index 547d83d09b1531f86bf8f4a9d0d90e84efdfc48a..e8c2727045bdd4325d480654c7f28dcceaaa19bd 100644 (file)
@@ -117,7 +117,7 @@ class TNAFlixNetworkBaseIE(InfoExtractor):
         title = self._html_search_regex(
             self._TITLE_REGEX, webpage, 'title') if self._TITLE_REGEX else self._og_search_title(webpage)
 
-        age_limit = self._rta_search(webpage)
+        age_limit = self._rta_search(webpage) or 18
 
         duration = parse_duration(self._html_search_meta(
             'duration', webpage, 'duration', default=None))