From d7ffabe7ca01c56b4b59ae64a163614d8865dd70 Mon Sep 17 00:00:00 2001 From: ngosang Date: Tue, 23 Jun 2015 09:46:19 +0200 Subject: [PATCH] [search engine] Fix novaprinter.py version number --- src/searchengine/nova/helpers.py | 10 +++++----- src/searchengine/nova/nova2.py | 24 ++++++++++-------------- src/searchengine/nova/nova2dl.py | 11 ++++------- src/searchengine/nova/novaprinter.py | 2 +- src/searchengine/nova3/helpers.py | 10 +++++----- src/searchengine/nova3/nova2.py | 24 ++++++++++-------------- src/searchengine/nova3/nova2dl.py | 11 ++++------- src/searchengine/nova3/novaprinter.py | 3 +-- 8 files changed, 40 insertions(+), 55 deletions(-) diff --git a/src/searchengine/nova/helpers.py b/src/searchengine/nova/helpers.py index 02376db2e..c4c6ad865 100644 --- a/src/searchengine/nova/helpers.py +++ b/src/searchengine/nova/helpers.py @@ -1,3 +1,8 @@ +#VERSION: 1.40 + +# Author: +# Christophe DUMEZ (chris@qbittorrent.org) + # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # @@ -22,11 +27,6 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -#VERSION: 1.40 - -# Author: -# Christophe DUMEZ (chris@qbittorrent.org) - import re, htmlentitydefs import tempfile import os diff --git a/src/searchengine/nova/nova2.py b/src/searchengine/nova/nova2.py index 410759a98..f2303c954 100644 --- a/src/searchengine/nova/nova2.py +++ b/src/searchengine/nova/nova2.py @@ -1,5 +1,13 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +#VERSION: 1.40 + +# Author: +# Fabien Devaux +# Contributors: +# Christophe Dumez (qbittorrent integration) +# Thanks to gab #gcu @ irc.freenode.net (multipage support on PirateBay) +# Thanks to Elias (torrentreactor and isohunt search engines) +# +# Licence: BSD # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -25,18 +33,6 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. - -#VERSION: 1.40 - -# Author: -# Fabien Devaux -# Contributors: -# Christophe Dumez (qbittorrent integration) -# Thanks to gab #gcu @ irc.freenode.net (multipage support on PirateBay) -# Thanks to Elias (torrentreactor and isohunt search engines) -# -# Licence: BSD - import urllib from os import path from glob import glob diff --git a/src/searchengine/nova/nova2dl.py b/src/searchengine/nova/nova2dl.py index 0d97c0154..31681a268 100644 --- a/src/searchengine/nova/nova2dl.py +++ b/src/searchengine/nova/nova2dl.py @@ -1,5 +1,7 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +#VERSION: 1.20 + +# Author: +# Christophe DUMEZ (chris@qbittorrent.org) # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -25,11 +27,6 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -#VERSION: 1.20 - -# Author: -# Christophe DUMEZ (chris@qbittorrent.org) - import sys import os import glob diff --git a/src/searchengine/nova/novaprinter.py b/src/searchengine/nova/novaprinter.py index 9cc598f14..61af629ca 100644 --- a/src/searchengine/nova/novaprinter.py +++ b/src/searchengine/nova/novaprinter.py @@ -1,4 +1,4 @@ -#VERSION: 1.43 +#VERSION: 1.45 # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: diff --git a/src/searchengine/nova3/helpers.py b/src/searchengine/nova3/helpers.py index b5b0f0cf4..a599150fc 100644 --- a/src/searchengine/nova3/helpers.py +++ b/src/searchengine/nova3/helpers.py @@ -1,3 +1,8 @@ +#VERSION: 1.40 + +# Author: +# Christophe DUMEZ (chris@qbittorrent.org) + # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # @@ -22,11 +27,6 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -#VERSION: 1.40 - -# Author: -# Christophe DUMEZ (chris@qbittorrent.org) - import re, html.entities import tempfile import os diff --git a/src/searchengine/nova3/nova2.py b/src/searchengine/nova3/nova2.py index ac672483b..dc16239a5 100644 --- a/src/searchengine/nova3/nova2.py +++ b/src/searchengine/nova3/nova2.py @@ -1,5 +1,13 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +#VERSION: 1.40 + +# Author: +# Fabien Devaux +# Contributors: +# Christophe Dumez (qbittorrent integration) +# Thanks to gab #gcu @ irc.freenode.net (multipage support on PirateBay) +# Thanks to Elias (torrentreactor and isohunt search engines) +# +# Licence: BSD # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -25,18 +33,6 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. - -#VERSION: 1.40 - -# Author: -# Fabien Devaux -# Contributors: -# Christophe Dumez (qbittorrent integration) -# Thanks to gab #gcu @ irc.freenode.net (multipage support on PirateBay) -# Thanks to Elias (torrentreactor and isohunt search engines) -# -# Licence: BSD - import urllib.parse from os import path, cpu_count from glob import glob diff --git a/src/searchengine/nova3/nova2dl.py b/src/searchengine/nova3/nova2dl.py index 0d97c0154..31681a268 100644 --- a/src/searchengine/nova3/nova2dl.py +++ b/src/searchengine/nova3/nova2dl.py @@ -1,5 +1,7 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +#VERSION: 1.20 + +# Author: +# Christophe DUMEZ (chris@qbittorrent.org) # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -25,11 +27,6 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -#VERSION: 1.20 - -# Author: -# Christophe DUMEZ (chris@qbittorrent.org) - import sys import os import glob diff --git a/src/searchengine/nova3/novaprinter.py b/src/searchengine/nova3/novaprinter.py index 3e3391a97..f8b0b2041 100644 --- a/src/searchengine/nova3/novaprinter.py +++ b/src/searchengine/nova3/novaprinter.py @@ -1,4 +1,4 @@ -#VERSION: 1.44 +#VERSION: 1.45 # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -24,7 +24,6 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. - def prettyPrinter(dictionary): dictionary['size'] = anySizeToBytes(dictionary['size']) outtext = "|".join((dictionary["link"], dictionary["name"].replace("|", " "), str(dictionary["size"]), str(dictionary["seeds"]), str(dictionary["leech"]), dictionary["engine_url"]))