1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00
gallery-dl/gallery_dl/downloader/text.py
2015-04-10 21:45:41 +02:00

21 lines
527 B
Python

# -*- coding: utf-8 -*-
# Copyright 2014, 2015 Mike Fährmann
#
# This program 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.
"""Downloader module for text urls"""
from .common import BasicDownloader
class Downloader(BasicDownloader):
def __init__(self):
BasicDownloader.__init__(self)
def download_impl(self, url, file):
file.write(bytes(url[7:], "utf-8"))
return 0