ruuk / script.module.youtube.dl

⛔️ DEPRECATED: Access to youtube-dl stream extraction in an XBMC module
GNU General Public License v2.0
39 stars 40 forks source link

Fix __repr__ for datetime redefinition #46

Closed amotzkau closed 4 years ago

amotzkau commented 4 years ago

repr() of a datetime.datetime object got 'new_datetime' as the class name, this led to errors with the SimpleCache module that tried to restore the representation but could not find the new_datetime class.

This fix changes the repr function of the new class to show 'datetime.datetime' as the classes name.

https://pastebin.com/3Q6s1MK7 shows such errors that occurred.