mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[core] Fix support for upcoming Python 3.12 (#8130)
This also adds the following test runners: - `3.12-dev` on `ubuntu-latest` - `3.12-dev` on `windows-latest` - `pypy-3.10` on `ubuntu-latest` Authored by: Grub4K
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| import calendar | ||||
| import json | ||||
| import functools | ||||
| from datetime import datetime | ||||
| from datetime import datetime, timezone | ||||
| from random import random | ||||
| 
 | ||||
| from .common import InfoExtractor | ||||
| @@ -243,7 +243,7 @@ class PanoptoIE(PanoptoBaseIE): | ||||
|         invocation_id = delivery_info.get('InvocationId') | ||||
|         stream_id = traverse_obj(delivery_info, ('Delivery', 'Streams', ..., 'PublicID'), get_all=False, expected_type=str) | ||||
|         if invocation_id and stream_id and duration: | ||||
|             timestamp_str = f'/Date({calendar.timegm(datetime.utcnow().timetuple())}000)/' | ||||
|             timestamp_str = f'/Date({calendar.timegm(datetime.now(timezone.utc).timetuple())}000)/' | ||||
|             data = { | ||||
|                 'streamRequests': [ | ||||
|                     { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Simon Sawicki
					Simon Sawicki