<commit_before># -*- coding: utf-8 -*-

import re

from module.plugins.hoster.Http import Http
from module.network.HTTPRequest import BadHeader

# Support onlinetvrecorder.com

class OnlineTvRecorder(Http):
    __name__    = "OnlineTvRecorder"
    __type__    = "hoster"
    __version__ = "0.01"
    __status__  = "testing"

    # RIPE Database:
    # inetnum: 192.168.3.11 - 192.168.3.11
    # route:   172.16.17.32/21
    __pattern__ = r'http://81\.95\.11\.\d{1,2}/download/\d+/\d+/\d*/[0-9a-f]+/.+'
    __config__  = [("activated", "bool", "Activated", True)]
    __description__ = """OnlineTvRecorder hoster plugin"""
    __license__     = "GPLv3"
    __authors__     = [("<NAME>", "<EMAIL>")]

    def setup(self):
        # OnlineTvRecorder policy
        self.multiDL        = False
        self.chunk_limit     = 1
        self.resume_download = True

    def process(self, pyfile):
        try:
            return super(OnlineTvRecorder, self).process(pyfile)<commit_msg>[OnlineTvRecorder] additional download server (#2653)<commit_after># -*- coding: utf-8 -*-

import re

from module.plugins.hoster.Http import Http
from module.network.HTTPRequest import BadHeader

# Support onlinetvrecorder.com

class OnlineTvRecorder(Http):
    __name__    = "OnlineTvRecorder"
    __type__    = "hoster"
    __version__ = "0.02"
    __status__  = "testing"

    # RIPE Database:
    # inetnum: 192.168.3.11 - 192.168.3.11
    # route:   172.16.17.32/21
    # additional: 172.16.58.3
    __pattern__ = r'http://(81\.95\.11\.\d{1,2}|93\.115\.84\.162)/download/\d+/\d+/\d*/[0-9a-f]+/.+'
    __config__  = [("activated", "bool", "Activated", True)]
    __description__ = """OnlineTvRecorder hoster plugin"""
    __license__     = "GPLv3"
    __authors__     = [("<NAME>", "<EMAIL>")]

    def setup(self):
        # OnlineTvRecorder policy
        self.multiDL        = False
        self.chunk_limit     = 1
        self.resume_download = True

    def process(self, pyfile):
        try:
            return super(OnlineTvRecorder, self).process(pyfile)
{'fraction_non_alphanumeric': 0.15178135675939483, 'fraction_numerical': 0.054660810151293315, 'mean_word_length': 2.5776614310645725, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 7, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6426983', 'n_tokens_mistral': 801, 'n_tokens_neox': 715, 'n_words': 135}