1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +01:00

Change title formating from custom to 'utils.filenamify'

This commit is contained in:
dalgr 2018-01-27 20:37:18 +01:00 committed by Johan Andersson
parent cf7f8c1da8
commit 530aef4ed6

View File

@ -3,14 +3,13 @@
from __future__ import absolute_import
import json
import os
import re
import unicodedata
from datetime import datetime
from svtplay_dl.service import Service
from svtplay_dl.error import ServiceError
from svtplay_dl.fetcher.hls import hlsparse
from svtplay_dl.utils.urllib import urlparse
from svtplay_dl.utils import filenamify
class Atg(Service):
@ -42,7 +41,7 @@ class Atg(Service):
if "title" in janson:
directory = os.path.dirname(self.options.output)
title = re.sub(r"[^\S\n\t]+|\\|/", "_", janson["title"])
title = filenamify(janson["title"])
self.options.output = os.path.join(directory, title)
if "urls" in janson: