mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-11 13:43:37 +00:00
Fix Uuid1 Python Bug.
Add fallback to uuid4 when uuid1 fails with ValueError https://bugs.python.org/issue32502
This commit is contained in:
parent
1c5b805637
commit
745ca9e140
2 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,9 @@
|
||||||
### 0.16.18 (2018-07-05 14:45:00 UTC)
|
### 0.16.19 (2018-07-05 18:10:00 UTC)
|
||||||
|
|
||||||
|
* Fix Uuid1 Python Bug, add fallback to uuid4 when uuid1 fails with ValueError https://bugs.python.org/issue32502
|
||||||
|
|
||||||
|
|
||||||
|
### 0.16.18 (2018-07-05 14:45:00 UTC)
|
||||||
|
|
||||||
* Fix Scenetime torrent provider
|
* Fix Scenetime torrent provider
|
||||||
* Change disable search torrents on first installation
|
* Change disable search torrents on first installation
|
||||||
|
|
|
@ -26,7 +26,10 @@ import uuid
|
||||||
import logger
|
import logger
|
||||||
import sickbeard
|
import sickbeard
|
||||||
|
|
||||||
|
try:
|
||||||
INSTANCE_ID = str(uuid.uuid1())
|
INSTANCE_ID = str(uuid.uuid1())
|
||||||
|
except ValueError:
|
||||||
|
INSTANCE_ID = str(uuid.uuid4())
|
||||||
|
|
||||||
USER_AGENT = ('SickGear/(%s; %s; %s)' % (platform.system(), platform.release(), INSTANCE_ID))
|
USER_AGENT = ('SickGear/(%s; %s; %s)' % (platform.system(), platform.release(), INSTANCE_ID))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue