Esempio n. 1
0
                    self.msg(_("Thumbnail URL: %s") % thumb_url)
                    self.msg(_('HTML link: <a href="%(img_page_url)s"><img src="%(thumb_url)s"></a>') % imgd)
                    self.msg(_('Forum link 1: [URL=%(img_page_url)s][IMG]%(thumb_url)s[/IMG][/URL]') % imgd)
                    self.msg(_('Forum link 2: [url=%(img_page_url)s][img=%(thumb_url)s][/url]') % imgd)
        else:
            self.msg("Server response doesn't contain image URL.")
        #print data

    def _features(self):
        f = {
            'filesize_limit': 1500000, # 1.5 mb
            }
        return f

def get_service_options():
    options = []
    options.append(make_option("-f", "--full", 
        action="store_true", dest="full",
        help="Show BB and HTML links in the output along with a direct url")
        )
    return options

upimg.register_service(
    "imageshack.us",
    ImageShackService,
    get_service_options,
    description = "http://imageshack.us free image hosting.",
    service_type = "image-hosting"
    )
Esempio n. 2
0
        else:
            self.msg("Server response doesn't contain image URL.")
            self.msg("Response: %s" % data)
        #print data

    def _features(self):
        f = {
            'filesize_limit': 1500000,  # 1.5 mb
        }
        return f


def get_service_options():
    options = []
    options.append(
        make_option(
            "-f",
            "--full",
            action="store_true",
            dest="full",
            help="Show BB and HTML links in the output along with a direct url"
        ))
    return options


upimg.register_service("imageshack.us",
                       ImageShackService,
                       get_service_options,
                       description="http://imageshack.us free image hosting.",
                       service_type="image-hosting")
Esempio n. 3
0
                          ) % imgd)
        else:
            self.msg("Server response doesn't contain image URL.")
        #print data

    def _features(self):
        f = {
            'filesize_limit': 10000000,  # ~10 mb
        }
        return f


def get_service_options():
    options = []
    options.append(
        make_option(
            "-f",
            "--full",
            action="store_true",
            dest="full",
            help="Show BB and HTML links in the output along with a direct url"
        ))
    return options


upimg.register_service("radikal.ru",
                       RadikalRuService,
                       get_service_options,
                       description="http://radikal.ru free image hosting.",
                       service_type="image-hosting")
Esempio n. 4
0
                    self.msg(_("Thumbnail URL: %s") % thumb_url)
                    self.msg(_('HTML link: <a href="%(direct_url)s"><img src="%(thumb_url)s"></a>') % imgd)
                    self.msg(_('Forum link 1: [URL=%(direct_url)s][IMG]%(thumb_url)s[/IMG][/URL]') % imgd)
                    self.msg(_('Forum link 2: [url=%(direct_url)s][img=%(thumb_url)s][/url]') % imgd)
        else:
            self.msg("Server response doesn't contain image URL.")
        #print data

    def _features(self):
        f = {
            'filesize_limit': 10000000, # ~10 mb
            }
        return f

def get_service_options():
    options = []
    options.append(make_option("-f", "--full", 
        action="store_true", dest="full",
        help="Show BB and HTML links in the output along with a direct url")
        )
    return options

upimg.register_service(
    "radikal.ru",
    RadikalRuService,
    get_service_options,
    description = "http://radikal.ru free image hosting.",
    service_type = "image-hosting"
    )