From c16ec7e6173f49d31d52eccfe3843d73752a9e3a Mon Sep 17 00:00:00 2001
From: azzy9 <19675382+azzy9@users.noreply.github.com>
Date: Thu, 26 Mar 2020 14:02:10 +0000
Subject: [PATCH] Delete putvid.py
Domain Expired: https://who.is/whois/putvid.com
---
lib/resolveurl/plugins/putvid.py | 42 --------------------------------
1 file changed, 42 deletions(-)
delete mode 100644 lib/resolveurl/plugins/putvid.py
diff --git a/lib/resolveurl/plugins/putvid.py b/lib/resolveurl/plugins/putvid.py
deleted file mode 100644
index b4b18221..00000000
--- a/lib/resolveurl/plugins/putvid.py
+++ /dev/null
@@ -1,42 +0,0 @@
-"""
- putvid plugin for ResolveURL
- Copyright (C) 2018 gujal
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see .
-"""
-from resolveurl import common
-from resolveurl.resolver import ResolveUrl, ResolverError
-from lib import helpers
-
-class PutVidResolver(ResolveUrl):
- name = "putvid"
- domains = ['putvid.com']
- pattern = '(?://|\.)(putvid\.com)/(?:embed-)?([0-9a-zA-Z]+)'
-
- def __init__(self):
- self.net = common.Net()
-
- def get_url(self, host, media_id):
- return self._default_get_url(host, media_id)
-
- def get_media_url(self, host, media_id):
- web_url = self.get_url(host, media_id)
- html = self.net.http_GET(web_url).content
- if html:
- sources = helpers.scrape_sources(html, patterns=['''sources:[^"]+"(?P[^"]+)'''], generic_patterns=False)
- if sources:
- source = helpers.pick_source(sources)
- return source
-
- raise ResolverError('File not found')