mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-08-11 15:54:42 +08:00
20 lines
322 B
Python
20 lines
322 B
Python
#!/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')
|