debian/0000755000000000000000000000000012300620731007160 5ustar debian/control0000644000000000000000000000165412122410113010562 0ustar Source: photo-uploader Section: graphics Priority: extra Maintainer: Andrew Shadura Uploaders: Python Applications Packaging Team Build-Depends: debhelper (>= 9) Build-Depends-Indep: python (>= 2.6.6-3~), python-pycurl Standards-Version: 3.9.3 Vcs-Hg: http://anonscm.debian.org/hg/collab-maint/photo-uploader Vcs-Browser: http://anonscm.debian.org/hg/collab-maint/photo-uploader Homepage: http://cihar.com/software/photo-uploader/ Package: photo-uploader Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-pycurl Description: Command line photo uploader Photo uploader is a command line utility (and Python module) for uploading photos to minilabs for printing or to any service for image hosting. It currently supports only a few minilab services in Czechia and some hosting services like ImageShack, but can be easily extended to support others. debian/watch0000644000000000000000000000012011772263124010215 0ustar version=3 http://dl.cihar.com/photo-uploader/latest/photo-uploader-(.*)\.tar.gz debian/docs0000644000000000000000000000000711772263124010043 0ustar README debian/changelog0000644000000000000000000000703712300620731011041 0ustar photo-uploader (0.12-2) unstable; urgency=low * Fix PostImage support. -- Andrew Shadura Tue, 18 Feb 2014 10:03:20 +0100 photo-uploader (0.12-1) unstable; urgency=low * New upstream release. -- Andrew Shadura Sat, 15 Feb 2014 23:06:39 +0100 photo-uploader (0.11-1) unstable; urgency=low * New upstream release. -- Andrew Shadura Mon, 28 Oct 2013 17:48:11 +0100 photo-uploader (0.10-1) unstable; urgency=low * New maintainer. * New upstream release (Closes: #677220). * Migrate to dh_python2. * Bump Standards-Version to 3.9.3 (no changes). -- Andrew Shadura Wed, 20 Mar 2013 19:05:24 +0100 photo-uploader (0.9-1) unstable; urgency=low * New upstream release. - Fixes upload to imageshack (Closes: #568268). * Bump standards to 3.8.4. -- Michal Čihař Wed, 10 Feb 2010 11:26:03 +0100 photo-uploader (0.8-2) unstable; urgency=low * No need to have python-dev build dep, python is enough. * Install sample config file (Closes: #564591). -- Michal Čihař Mon, 11 Jan 2010 18:15:17 +0100 photo-uploader (0.8-1) unstable; urgency=low * New upstream version. * Convert to source package format 3.0. * Simplify debian/rules. * Bump standards to 3.8.3. -- Michal Čihař Mon, 30 Nov 2009 13:50:42 +0100 photo-uploader (0.7-1) unstable; urgency=low * New upstream version. * Update to standards 3.8.1 (no changes needed). -- Michal Čihař Mon, 11 May 2009 14:35:37 +0200 photo-uploader (0.6-3) unstable; urgency=low [ Sandro Tosi ] * debian/control - switch Vcs-Browser field to viewsvn [ Marco Rodrigues ] * debian/control: + Add ${misc:Depends} to Depends to remove lintian warning. [ Michal Čihař ] * Update debian/copyright. * Switch to python-support (in fact the switch did happen unintentionally before, but build deps reflect it now). -- Michal Čihař Sun, 15 Feb 2009 14:56:14 +0100 photo-uploader (0.6-2) unstable; urgency=low * Move packaging to Python Applications Packaging Team: - Change Vcs fields in debian/control. - Add team to Uploaders. * Update to standards 3.8.0. * Use new dh command to simplify debian/rules. -- Michal Čihař Sat, 07 Jun 2008 11:55:36 +0200 photo-uploader (0.6-1) unstable; urgency=low * New upstream release. - Upstream now ships ChangeLog. * Adjusted Vcs-* headers to point to trunk. * Drop not needed debian/patches. * Rebuild with new python-central fixes empty dir /usr/lib. -- Michal Čihař Fri, 21 Mar 2008 12:11:10 +0100 photo-uploader (0.5-1) unstable; urgency=low * New upstream version. * Update policy to 3.7.3 (no changes needed). * Cleanup clean target in debian/rules: - Do not require python for this. - Do not fail if no *.pyc files are found. * Drop dpatch as it is not needed now. -- Michal Čihař Tue, 11 Dec 2007 12:45:08 +0900 photo-uploader (0.4-3) unstable; urgency=low * Build depend on python-pycurl (Closes: #451457). -- Michal Čihař Fri, 16 Nov 2007 11:17:38 +0900 photo-uploader (0.4-2) unstable; urgency=low * We should have priority extra as python-pycurl also has it. -- Michal Čihař Tue, 13 Nov 2007 11:50:40 +0900 photo-uploader (0.4-1) unstable; urgency=low * Initial release (Closes: #450677). -- Michal Čihař Mon, 12 Nov 2007 16:58:26 +0900 debian/source/0000755000000000000000000000000012300617506010466 5ustar debian/source/format0000644000000000000000000000001411772263124011701 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000223311772263124011126 0ustar This package was debianized by Michal Čihař on Mon, 12 Nov 2007 16:31:40 +0900. It was downloaded from Upstream Author: Michal Čihař Copyright: Copyright © 2007 Michal Čihař License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. The Debian packaging is Copyright (C) 2007 - 2009, Michal Čihař and is licensed under the GPL, see above. debian/examples0000644000000000000000000000001711772263124010732 0ustar photo-uploadrc debian/patches/0000755000000000000000000000000012300620712010606 5ustar debian/patches/series0000644000000000000000000000002412300617424012025 0ustar no-thumbnails.patch debian/patches/no-thumbnails.patch0000644000000000000000000000305712300620712014414 0ustar Description: Show URL to the full image, not the thumbnail. Author: Andrew Shadura --- a/phoupl/services/postimg.py +++ b/phoupl/services/postimg.py @@ -27,7 +27,7 @@ import pycurl import re -MATCHER_TAG = re.compile(r'\[img\]([^]]*)\[/img\]') +MATCHER_TAG = re.compile(r'img src=\'([^\']*)\'') MATCHER_SHOWLINK = re.compile(r'(https*://postimg.org/image/[^/]*/)') MATCHER_DELETELINK = re.compile(r'(https*://postimg.org/delete/[^/]*/)') @@ -41,18 +41,21 @@ self._delete_urls = [] def _upload(self, image): - self._curl.setopt(pycurl.HTTPHEADER, ['Expect: 100-continue']) + self._curl.setopt(pycurl.HTTPHEADER, ['Expect: 100-continue', 'User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Iceweasel/24.0']) self.post('http://postimage.org/index.php', [ ('upload', (pycurl.FORM_FILE, image)), ]) data = self._buffer.getvalue() - m = MATCHER_TAG.search(data) - self._img_urls.append(m.group(1)) m = MATCHER_SHOWLINK.search(data) self._show_urls.append(m.group(1)) m = MATCHER_DELETELINK.search(data) self._delete_urls.append(m.group(1)) + self._curl.setopt(pycurl.HTTPHEADER, ['User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 Iceweasel/24.0']) + self.get(self._show_urls[0]) + data = self._buffer.getvalue() + m = MATCHER_TAG.search(data) + self._img_urls.append(m.group(1)) def _post_upload(self): debian/rules0000755000000000000000000000010312122410113010223 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 %: dh $@ --with python2 debian/compat0000644000000000000000000000000212122410113010347 0ustar 9