auqhjjqdo / LiveRecorder

基于Streamlink的全自动直播录制工具,已支持哔哩哔哩、斗鱼、虎牙、抖音、YouTube、Twitch等
MIT License
557 stars 59 forks source link

抖音录制后期报错 #75

Closed linuxtechnology closed 9 months ago

linuxtechnology commented 9 months ago

运行环境

版本号:v2.30 运行平台:macos 运行架构:macos Python版本:Python3.9

配置文件

{
    "output": "/Users/*/Movies/录像",

    "user": [
        {
            "platform": "Douyin",
            "id": "119009667997",
            "name": "小吴日记",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/小吴日记",
            "headers": {
                "Referer": "https://live.douyin.com/119009667997"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "932020482179",
            "name": "小吴日记日记",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/小吴日记",
            "headers": {
                "Referer": "https://live.douyin.com/932020482179"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "tt082016",
            "name": "特别助理",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/特别助理",
            "headers": {
                "Referer": "https://live.douyin.com/tt082016"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "203403133532",
            "name": "su饱饱",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/su饱饱",
            "headers": {
                "Referer": "https://live.douyin.com/203403133532"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "40514832521",
            "name": "ubb",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/ubb",
            "headers": {
                "Referer": "https://live.douyin.com/40514832521"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "250688171773",
            "name": "O.yu",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/Oyu",
            "headers": {
                "Referer": "https://live.douyin.com/250688171773"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "721273774498",
            "name": "iww",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/iww",
            "headers": {
                "Referer": "https://live.douyin.com/721273774498"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "661906231631",
            "name": "不舔奶盖",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/不舔奶盖",
            "headers": {
                "Referer": "https://live.douyin.com/661906231631"
            },
            "cookies": "神秘的"
        },

        {
            "platform": "Douyin",
            "id": "571810858104",
            "name": "林羽萌",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/林羽萌",
            "headers": {
                "Referer": "https://live.douyin.com/571810858104"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "261375191811",
            "name": "芝柚",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/芝柚",
            "headers": {
                "Referer": "https://live.douyin.com/261375191811"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "450493766073",
            "name": "兔软软",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/兔软软",
            "headers": {
                "Referer": "https://live.douyin.com/450493766073"
            },
            "cookies": ""
        },
        {
            "platform": "Douyin",
            "id": "293711979711",
            "name": "酷金金有点欠儿",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/酷金金有点欠儿",
            "headers": {
                "Referer": "https://live.douyin.com/293711979711"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "20596197644",
            "name": "金泰妍-",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/金泰妍-",
            "headers": {
                "Referer": "https://live.douyin.com/20596197644"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "848060847426",
            "name": "小紫园长",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/小紫园长",
            "headers": {
                "Referer": "https://live.douyin.com/848060847426"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "441757101173",
            "name": "小狐狸的一天",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/小狐狸的一天",
            "headers": {
                "Referer": "https://live.douyin.com/441757101173"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "980474620127",
            "name": "喵呜",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/喵呜",
            "headers": {
                "Referer": "https://live.douyin.com/980474620127"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "51433863190",
            "name": "双胞胎",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/双胞胎",
            "headers": {
                "Referer": "https://live.douyin.com/51433863190"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "698856056307",
            "name": "敏敏mm",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/敏敏mm",
            "headers": {
                "Referer": "https://live.douyin.com/479602146835"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "658909266393",
            "name": "初chuu",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/初chuu",
            "headers": {
                "Referer": "https://live.douyin.com/658909266393"
            },
            "cookies": "神秘的cookies"
        },
        {
            "platform": "Douyin",
            "id": "698856056307",
            "name": "小包",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/小包",
            "headers": {
                "Referer": "https://live.douyin.com/698856056307"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "753070769373",
            "name": "失眠熊",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/失眠熊",
            "headers": {
                "Referer": "https://live.douyin.com/753070769373"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "36679194843",
            "name": "小柚子",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/小柚子",
            "headers": {
                "Referer": "https://live.douyin.com/36679194843"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "228226793738",
            "name": "重口小萝莉",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/重口小萝莉",
            "headers": {
                "Referer": "https://live.douyin.com/228226793738"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "415781218929",
            "name": "小马漫漫",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/小马漫漫",
            "headers": {
                "Referer": "https://live.douyin.com/415781218929"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "279973967057",
            "name": "kerr's ",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/kerr's ",
            "headers": {
                "Referer": "https://live.douyin.com/279973967057"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "332300392385",
            "name": "一桶鱼",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/一桶鱼",
            "headers": {
                "Referer": "https://live.douyin.com/332300392385"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "87613839390",
            "name": "芬芬很特别",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/芬芬很特别",
            "headers": {
                "Referer": "https://live.douyin.com/87613839390"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "276908706172",
            "name": "肉哥三缺一",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/肉哥三缺一",
            "headers": {
                "Referer": "https://live.douyin.com/276908706172"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "580771167481",
            "name": "落难公主",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/落难公主",
            "headers": {
                "Referer": "https://live.douyin.com/580771167481"
            },
            "cookies": "神秘的"
        },
        {
            "platform": "Douyin",
            "id": "540775388126",
            "name": "刘亦菲",
            "interval": 10,
            "format": "mp4",
            "output": "/Users/*/Movies/录像/抖音刘亦菲",
            "headers": {
                "Referer": "https://live.douyin.com/540775388126"
            },
            "cookies": "神秘的"
        }

    ]
}

复现步骤(可选)

1. 2. 3. ...

错误描述

配置文件有十多个抖音直播间 。 起初正常,后面就报错了。 这种报错,光日志就写了12个G

错误日志

File "/Users/*/Library/Python/3.9/lib/python/site-packages/httpx/_models.py", line 761, in json
    return jsonlib.loads(self.content, **kwargs)
           │       │     │    │          └ {}
           │       │     │    └ <property object at 0x10e63a6d0>
           │       │     └ <Response [444 ]>
           │       └ <function loads at 0x10dec1430>
           └ <module 'json' from '/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json...
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           │                │      └ '<!DOCTYPE html> <html> <meta charset="utf-8"> <body> <p> 服务异常,请联系管理——lark群:6960630697841131523</p> <script src="https://log9...
           │                └ <function JSONDecoder.decode at 0x10deafdc0>
           └ <json.decoder.JSONDecoder object at 0x10da98d30>
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               │    │          │      │  └ '<!DOCTYPE html> <html> <meta charset="utf-8"> <body> <p> 服务异常,请联系管理——lark群:6960630697841131523</p> <script src="https://log9...
               │    │          │      └ <built-in method match of re.Pattern object at 0x10de9e1b0>
               │    │          └ '<!DOCTYPE html> <html> <meta charset="utf-8"> <body> <p> 服务异常,请联系管理——lark群:6960630697841131523</p> <script src="https://log9...
               │    └ <function JSONDecoder.raw_decode at 0x10deafe50>
               └ <json.decoder.JSONDecoder object at 0x10da98d30>
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
          │                                  └ '<!DOCTYPE html> <html> <meta charset="utf-8"> <body> <p> 服务异常,请联系管理——lark群:6960630697841131523</p> <script src="https://log9...
          └ <class 'json.decoder.JSONDecodeError'>

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
^C2023-12-25 13:35:50.740 | WARNING  | __main__:run:452 - 用户中断录制,正在关闭直播流

错误截图(可选)

No response

auqhjjqdo commented 9 months ago

报错已经告诉你了:服务异常,请联系管理——lark群:6960630697841131523 你觉得字节跳动的程序员都不做事的吗,录这么多直播是谁都会封