def save_strm(nzbname, url): log("save_strm: nzbname: %s url: %s" % (nzbname, url)) strm2lib.save_strm(__settings__, nzbname, url) if SAVE_NZB and utils.exists(NZB_CACHE): nzb_path = utils.join(NZB_CACHE, '%s%s' % (nzbname, '.nzb')) log("save_strm: nzb_path: %s" % nzb_path) m_nzb.save(url, nzb_path)
def save_strm(nzbname, url): strm2lib.save_strm(__settings__, nzbname, url) if SAVE_NZB and os.path.exists(NZB_CACHE): nzb_path = os.path.join(NZB_CACHE, '%s%s' % (nzbname, '.nzb')) m_nzb.save(url, nzb_path)