mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-08-10 14:56:35 +08:00
add u2helper
This commit is contained in:
19
u2helper/u2torrent.py
Normal file
19
u2helper/u2torrent.py
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
__author__ = 'ty'
|
||||
|
||||
import json
|
||||
|
||||
class U2Torrent:
|
||||
title = ""
|
||||
id = 0
|
||||
catalog = ""
|
||||
description = ""
|
||||
name = ""
|
||||
folder = ""
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def json(self):
|
||||
return json.dumps(self, default=lambda o: o.__dict__, ensure_ascii=False).encode('utf8')
|
Reference in New Issue
Block a user