1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00
gallery-dl/test/results/2chan.py

35 lines
981 B
Python
Raw Normal View History

2023-09-10 14:45:01 +02:00
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
gallery_dl = __import__("gallery_dl.extractor.2chan")
_2chan = getattr(gallery_dl.extractor, "2chan")
__tests__ = (
{
"#url" : "https://dec.2chan.net/70/res/17222.htm",
2023-09-10 14:45:01 +02:00
"#category": ("", "2chan", "thread"),
"#class" : _2chan._2chanThreadExtractor,
"#pattern" : r"https://dec\.2chan\.net/70/src/\d{13}\.jpg",
"#count" : ">= 2",
2023-09-10 14:45:01 +02:00
"board" : "70",
"board_name": "新板提案",
"com" : str,
"fsize" : r"re:\d+",
"name" : "名無し",
"no" : r"re:17\d\d\d",
"now" : r"re:23/../..\(.\)..:..:..",
2023-09-10 14:45:01 +02:00
"post" : "無題",
"server" : "dec",
"thread" : "17222",
2023-09-10 14:45:01 +02:00
"tim" : r"re:^\d{13}$",
"time" : r"re:^\d{10}$",
"title" : "画像会話板",
2023-09-10 14:45:01 +02:00
},
)