[youtube] Use new signature cache ID for in-memory cache as well

This commit is contained in:
Philipp Hagemeister 2014-08-02 12:23:18 +02:00
parent 60064c53f1
commit 62af3a0eb5

View File

@ -473,7 +473,7 @@ def _decrypt_signature(self, s, video_id, player_url, age_gate=False):
if player_url.startswith(u'//'): if player_url.startswith(u'//'):
player_url = u'https:' + player_url player_url = u'https:' + player_url
try: try:
player_id = (player_url, len(s)) player_id = (player_url, self._signature_cache_id(s))
if player_id not in self._player_cache: if player_id not in self._player_cache:
func = self._extract_signature_function( func = self._extract_signature_function(
video_id, player_url, s video_id, player_url, s