mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[instagram] Fix info_dict key name
This commit is contained in:
		| @@ -309,6 +309,8 @@ class TestPlaylists(unittest.TestCase): | ||||
|             'thumbnail': 're:^https?://.*\.jpg', | ||||
|             'uploader': 'Porsche', | ||||
|             'uploader_id': 'porsche', | ||||
|             'timestamp': 1387486713, | ||||
|             'upload_date': '20131219', | ||||
|         } | ||||
|         expect_info_dict(self, EXPECTED, test_video) | ||||
|  | ||||
|   | ||||
| @@ -35,6 +35,7 @@ from youtube_dl.utils import ( | ||||
|     url_basename, | ||||
|     urlencode_postdata, | ||||
|     xpath_with_ns, | ||||
|     parse_iso8601, | ||||
| ) | ||||
|  | ||||
| if sys.version_info < (3, 0): | ||||
| @@ -266,5 +267,10 @@ class TestUtil(unittest.TestCase): | ||||
|         data = urlencode_postdata({'username': 'foo@bar.com', 'password': '1234'}) | ||||
|         self.assertTrue(isinstance(data, bytes)) | ||||
|  | ||||
|     def test_parse_iso8601(self): | ||||
|         self.assertEqual(parse_iso8601('2014-03-23T23:04:26+0100'), 1395612266) | ||||
|         self.assertEqual(parse_iso8601('2014-03-23T22:04:26+0000'), 1395612266) | ||||
|         self.assertEqual(parse_iso8601('2014-03-23T22:04:26Z'), 1395612266) | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|     unittest.main() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister