Commit 3d2975f1 authored by prx's avatar prx

delete site

parent 53951759
......@@ -2,6 +2,7 @@
#Auteur : thuban <thuban@yeuxdelibad.net>
REP=~/geek/gitreps/3hg/dontpanic
OUT=~/geek/gitreps/3hg-website/dontpanic/downloads/
if [ -d /tmp/dontpanic ]; then
rm -rf /tmp/dontpanic
......@@ -13,7 +14,7 @@ cp -r * /tmp/dontpanic
rm -r /tmp/dontpanic/site
cd /tmp
tar cvzf "dontpanic-latest.tgz" "dontpanic"
mv dontpanic-latest.tgz $REP/site/downloads/
mv dontpanic-latest.tgz $OUT
exit
Copyright (c) <2016> <3hg team>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of the <3hg team> shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the <3hg team>
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Don't panic donwload page</title>
<meta name="description" content="Don't panic, just watch any movie thanks to torrent streaming">
<meta name="copyright" content="This document copyright 2016- by 3hg team.">
<link href="../style.css" rel="stylesheet">
<link rel="icon" href="/dontpanic/favicon.png" type="image/png">
</head>
<body>
<ul id="menu">
<li><a href="../index.html">3hg team</a></li>
<li><a href="/dontpanic/index.html">dontpanic</a></li>
<li><a href="./download.html">download</a></li>
<li><a href="../index.html#ss_contact">Contact</a></li>
</ul>
<h1 id="header">
<a href="#">
<img src="favicon.png" alt=".:: dontpanic ::." id="logo"/>
</a>
</h1>
<div id="main">
<div>
<h2>Download dontpanic</h2>
</div>
<p>You can download don't panic in different ways : </p>
<ul>
<li><a href="./downloads/dontpanic-latest.tgz">Source archive</a></li>
<li><a href="./downloads/dontpanic-latest-exe.zip">Windows executable</a></li>
</ul>
<h2>Installing with source archive</h2>
<p>Install dependencies:</p>
<pre><code># apt-get install python3-bottle python3-requests python3-bs4 python3-libtorrent sqlite3
</code></pre>
<p>get <em>dontpanic</em></p>
<pre><code>
wget http://3hg.toile-libre.org/downloads/dontpanic-latest.tgz
tar xvzf dontpanic-latest.tgz
cd dontpanic
</code></pre>
<p>Then, start dontpanic with this command in the dontpanic repository</p>
<pre><code>dontpanic
</code></pre>
<p>or</p>
<pre><code>python dontpanic.py
</code></pre>
<p>Your browser will automatically open a new page to dontpanic</p>
</div>
<div id="footer">
<em>dontpanic &copy; 2016 3hg team - <a href="MIT" alt="Licence MIT">LICENCE</a></em>
</div>
<script src="/js/js.js"></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Don't panic main page</title>
<meta name="description" content="Don't panic, just watch any movie thanks to torrent streaming">
<meta name="copyright" content="This document copyright 2016- by 3hg team.">
<link href="../style.css" rel="stylesheet">
<link rel="icon" href="/dontpanic/favicon.png" type="image/png">
</head>
<body>
<ul id="menu">
<li><a href="../index.html">3hg team</a></li>
<li><a href="#">dontpanic</a></li>
<li><a href="./download.html">download</a></li>
<li><a href="../index.html#ss_contact">Contact</a></li>
</ul>
<div id="main">
<h1 id="header">
<a href="#">
<img src="favicon.png" alt=".:: dontpanic ::." id="logo"/>
</a>
</h1>
<h2>What is dontpanic?</h2>
<p>Dontpanic is a free (as in "freedom") python application to look for any movie or serie and watch them
in "streaming". It looks like popcorntime or torrent time, but doesn't depend of a
centralized api.</p>
<h2>Screenshots</h2>
<div class="imagewall">
<a href="./Images/dontpanic1.png"><img src="./Images/dontpanic1.png" alt="dontpanic1.png" title="" /></a>
<a href="./Images/dontpanic2.png"><img src="./Images/dontpanic2.png" alt="dontpanic2.png" title="" /></a>
<a href="./Images/dontpanic3.png"><img src="./Images/dontpanic3.png" alt="dontpanic3.png" title="" /></a>
<a href="./Images/dontpanic5.png"><img src="./Images/dontpanic5.png" alt="dontpanic5.png" title="" /></a>
<a href="./Images/dontpanic7.png"><img src="./Images/dontpanic7.png" alt="dontpanic7.png" title="" /></a>
<a href="./Images/dontpanic6.png"><img src="./Images/dontpanic6.png" alt="dontpanic6.png" title="" /></a>
</div>
<h2>Usage</h2>
<p>You can run dontpanic for a single user with the command <code>dontpanic</code> or <code>python3 dontpanic.py</code>. <br/>It will open your browser to the dontpanic page.</p>
<p>Note: You can automatically stream and watch a magnet link if you pass it as a parameter : </p>
<pre><code>dontpanic magnet:xt=urn:btih:.....</code>
</pre>
<h2>Deploy on a server</h2>
<p>You can run dontpanic on your server and make it available for world. To
do so, you have to use an adapter like <a href="http://www.cherrypy.org/">cherrypy</a>.</p>
<pre><code>./dontpanic -adapter administrator admin_password</code></pre>
<p>or</p>
<pre><code>python3 dontpanic-server.py -adapter administrator admin_password
</code></pre>
<p>Change <code>-adapter</code> to the one you want to use, i.e. <code>-cherrypy</code>. Below,
you can find some adapters (see
<a href="http://bottlepy.org/docs/dev/deployment.html#switching-the-server-backend">here</a>
for a full list):</p>
<ul>
<li><code>-cherrypy</code> is multi-threaded (recommended). Install python-cherrypy3 to use it.</li>
<li><code>-paste</code> is multi-threaded. Instal python-paste to use it.</li>
<li><code>-tornado</code> : install python-tornado</li>
<li>...</li>
</ul>
<p>You can use <code>-auto</code> to let dontpanic (bottle) choose the first available
adapter.</p>
<h3>Use SSL (https):</h3>
<p>To do it correctly, you might want to read your adapter documentation. An easy way is to use apache or nginx as a reverse proxy.
For cherrypy, it's documented <a href="http://docs.cherrypy.org/en/latest/deploy.html#reverse-proxying">here</a>. Below, find a working nginx configuration using ssl with cherrypy : </p>
<pre><code>upstream apps {
server 127.0.0.1:8080;
}
gzip_http_version 1.0;
gzip_proxied any;
gzip_min_length 500;
gzip_disable "MSIE [1-6]\.";
gzip_types text/plain text/xml text/css
text/javascript
application/javascript;
server {
listen 80;
server_name localhost;
return 301 https://$server_name$request_uri; # enforce https
}
server {
listen 443 ssl;
server_name localhost;
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
location / {
proxy_pass http://apps;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
}
</code></pre>
<p>Of course, replace <code>localhost</code>, <code>8080</code> and ssl variables to fit your
configuration.</p>
<p>In this case, dontpanic was started with : </p>
<pre><code>python dontpanic-server.py -cherrypy admin password 8080
</code></pre>
<h2>Warning</h2>
<p>If you deploy dontpanic on a server, make sure the database is not
readable by world. The database is by default in
~/.dontpanic/databaz.db. Follow
<a href="http://bottlepy.org/docs/dev/deployment.html">bottle instructions</a>.</p>
<p>Remember, the admin page is /_admin</p>
<h2>FAQ</h2>
<h3>My download doesn't start</h3>
<p>Be sure to choose a file with a lot of peers.</p>
<h3>Creating debian package</h3>
<p>To create the debian package, use equivs : <code>equivs-build eqctl</code>.</p>
<p>Add <code>-f</code> to sign the package.</p>
<h3>Python2 or python3?</h3>
<p>Both are supported for now</p>
</div>
<div id="footer">
<em>dontpanic &copy; 2016 3hg team - <a href="MIT" alt="Licence MIT">LICENCE</a></em>
</div>
<script src="/js/js.js"></script>
</body>
</html>
User-agent: *
Disallow:
Crawl-delay: 5
......@@ -52,7 +52,7 @@ progversion = 1.6
defaultconf = {'startperc': 7,
'uplimit': 20,
'downlimit': -1,
'searchengine': 'torrentproject',
'searchengine': 'kickasstorrents',
'proxy_type': 'none',
'proxy_hostname': '',
'proxy_username': '',
......
......@@ -255,7 +255,8 @@ class TorrentSearch:
return self
def __exit__(self, exception_type, exception_value, traceback):
print(exception_type, exception_value)
#print(exception_type, exception_value, traceback)
pass
def search(self, sch, page=0):
try :
......@@ -336,6 +337,7 @@ class TorrentSearch:
d = {'name': name, 'magnet': magnet, 'size': size, 'seeds': seeds, "leechs": leechs}
yield(d)
def _torrentproject(self, sch):
"""
Search on torrentproject.se
......@@ -435,7 +437,7 @@ class TorrentSearch:
leechs = str()
yield(d)
def _kickasstorrents(self, sch):
def _kickasstorrents(self, sch, page=0):
"""
Return:
List of dictionnaries with keys :
......@@ -499,7 +501,7 @@ class TorrentSearch:
if __name__ == '__main__':
with TorrentSearch('kickasstorrents') as ts:
with TorrentSearch('torrentproject') as ts:
s = ts.search('flash', 0)
print(s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment