Skip to content

Commit

Permalink
merge(feature/lostfilm-fixes): fix lostfilm.tv issue
Browse files Browse the repository at this point in the history
  • Loading branch information
werwolfby committed Jul 30, 2017
2 parents 12cc882 + 1d622a8 commit 8583a4a
Show file tree
Hide file tree
Showing 34 changed files with 4,341 additions and 4,098 deletions.
2 changes: 1 addition & 1 deletion MonitorrentInstaller/MonitorrentInstaller/Product.wxs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="Monitorrent" Language="1033" Version="1.1.4.100" Manufacturer="Monitorrent Team" UpgradeCode="dd4cf505-1e44-4311-a8f2-efcf097175a7">
<Product Id="*" Name="Monitorrent" Language="1033" Version="1.1.5.100" Manufacturer="Monitorrent Team" UpgradeCode="dd4cf505-1e44-4311-a8f2-efcf097175a7">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." AllowSameVersionUpgrades="yes"/>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ x86: https://hub.docker.com/r/werwolfby/alpine-monitorrent/
[![](https://images.microbadger.com/badges/version/werwolfby/alpine-monitorrent.svg)](https://microbadger.com/images/werwolfby/alpine-monitorrent "Get your own version badge on microbadger.com")

### Windows Installer:
https://github.com/werwolfby/monitorrent/releases/download/1.1.4/MonitorrentInstaller-1.1.4.msi
https://github.com/werwolfby/monitorrent/releases/download/1.1.5/MonitorrentInstaller-1.1.5.msi

### Manual Install

Requirements:
- Python 3.x and pip

Download latest build: https://github.com/werwolfby/monitorrent/releases/download/1.1.4/monitorrent-1.1.4.zip
Download latest build: https://github.com/werwolfby/monitorrent/releases/download/1.1.5/monitorrent-1.1.5.zip
Extract into **monitorent** folder
* pip install -r requirements.txt
* python server.py
Expand Down
2 changes: 1 addition & 1 deletion monitorrent/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.1.4'
__version__ = '1.1.5'
7 changes: 4 additions & 3 deletions monitorrent/plugins/trackers/lostfilm.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def verify(self):
my_settings_url = 'http://www.lostfilm.tv/my_settings'
r1 = requests.get(my_settings_url, headers=self._headers, cookies=cookies,
**self.tracker_settings.get_requests_kwargs())
return r1.url == my_settings_url and 'location.replace' not in r1.text
return r1.url == my_settings_url and '<meta http-equiv="refresh" content="0; url=/">' not in r1.text

def get_cookies(self):
if not self.session:
Expand All @@ -498,7 +498,8 @@ def parse_url(self, url, parse_series=False):

response = requests.get(url, headers=self._headers, allow_redirects=False,
**self.tracker_settings.get_requests_kwargs())
if response.status_code != 200 or response.url != url or 'location.replace("/' in response.text:
if response.status_code != 200 or response.url != url \
or '<meta http-equiv="refresh" content="0; url=/">' in response.text:
return response
# lxml have some issue with parsing lostfilm on Windows, so replace it on html5lib for Windows
soup = get_soup(response.text, 'html5lib' if sys.platform == 'win32' else None)
Expand Down Expand Up @@ -825,7 +826,7 @@ def _prepare_request(self, topic):

def check_download(self, response):
if response.status_code == 200:
if 'location.replace("' in response.text:
if '<meta http-equiv="refresh" content="0; url=/">' in response.text:
return Status.NotFound
return Status.Ok

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monitorrent",
"version": "1.1.4",
"version": "1.1.5",
"description": "",
"main": "index.js",
"directories": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ interactions:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Cookie: [!!python/unicode 'lf_session=1234567890abcdefghjklmnopqrstvwxyz']
Cookie: [lf_session=1234567890abcdefghjklmnopqrstvwxyz]
User-Agent: ['Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML,
like Gecko) " + "Chrome/48.0.2564.109 Safari/537.36']
method: GET
uri: https://www.lostfilm.tv/v_search.php?c=160&s=4&e=22
response:
body:
string: !!binary |
H4sIAGl0llgC/61S0W7TMBR9Jl/hBalr0VK3adlDGxeJdhJIBfYQhHiaTOqSoCQOjlOtoElrK8ED
H4sIAGZeflkC/61S0W7TMBR9Jl/hBalr0VK3adlDGxeJdhJIBfYQhHiaTOqSoCQOjlOtoElrK8ED
gwck/qMgFZVOa3/B/iOu00nwAbPka/vce8+9PrreweBF3399eoKe+M+G6PTl4+HTPrIdjF+1+hgP
/MHe0a43kC9omkcy4imNMT55bvcsL5RJbA5GR3AkTFIUSpk57H0RTYgt2FiwPLRRwFPJUknsRhcV
IiYmqIOxYFKwOhdv8aSFHwWkedyo5KRdYcR1KwVpuq32w+NKSHKesLOQ5uHZhMYFq6Skaarnchoz
Expand All @@ -23,12 +23,12 @@ interactions:
1DO0v+/UCpwreCzLsKX6BWHXJgsgMHqhfhurvyE90/My5AbYPunFEfpHvwXnlfppUjamE7Amaa6v
kAfTAiNC7kKonv4KnAvTykx/gUIbvfAwNXIZnUrZzLD+BZzcD/ryAgAA
headers:
connection: [keep-alive]
content-encoding: [gzip]
content-type: [text/html;charset="utf-8"]
date: ['Sun, 05 Feb 2017 00:40:08 GMT']
server: [nginx]
x-powered-by: [PHP/5.6.22]
Connection: [keep-alive]
Content-Encoding: [gzip]
Content-Type: [text/html;charset="utf-8"]
Date: ['Sun, 30 Jul 2017 22:32:04 GMT']
Server: [nginx]
X-Powered-By: [PHP/5.6.22]
status: {code: 200, message: OK}
- request:
body: null
Expand All @@ -43,50 +43,55 @@ interactions:
response:
body:
string: !!binary |
H4sIAGl0llgC/9VZ3VLjRha+xk/RUdWUpWBLtjEYbIup4W8g2JA4eCbAUlNtqW0LJLVotSw8A1XJ
ZSoXqeze7tbuI6Syk8pmk8y+gnijPS3JPwwedqay7M6oAKvPX58+3/lablH/aGN//eDw003U5469
mqknHwjV+wSb4gZuHcIxMvqY+YTrUsC7+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HpZfyv6YrwABAtLXMQ2gAZScq/sUHIZN9YhRQeEegSxQJR/meEtDy9NhKxm2tDyaR5ph
BA4UgKpLuNMFSb6NgQwewEFLQ+Z1oM50GhGGld5DqloGuicpj7TZCnN1aGO3++DxlscFgVaZ09bu
ba8mvz1sUezCzbCAOvCHfU7SnJ0hAhMIVycnQ5IBLE9AjFJUIy0x9HFq5WMH+74NNcA10DKDtZCO
70OyKc40/IvOKieNcVlP2zDlnoxkC9uc+tCs2+pW1CouwCUfWNKfB9QdQm1gTDZMcG5cA/TpaWs6
kO/f5Z1P3iOTX0MWDfWr0H8ACwwgaSwaAAA=
headers:
connection: [keep-alive]
content-encoding: [gzip]
content-type: [text/html]
date: ['Sun, 05 Feb 2017 00:40:08 GMT']
keep-alive: [timeout=10]
server: [nginx]
vary: [Accept-Encoding]
x-powered-by: [PHP/5.3.27]
Connection: [keep-alive]
Content-Encoding: [gzip]
Content-Type: [text/html]
Date: ['Sun, 30 Jul 2017 22:32:05 GMT']
Keep-Alive: [timeout=10]
Server: [nginx]
Vary: [Accept-Encoding]
X-Powered-By: [PHP/5.3.27]
status: {code: 200, message: OK}
version: 1
Loading

0 comments on commit 8583a4a

Please sign in to comment.