Downpour

0.5.0

☔️ Get TV & Movie info from downloaded file names
Ponyboy47/Downpour

What's New

0.5.0

2017-11-16T23:59:23Z

Big changes for Swift 4

Downpour

license Build Status

Downpour was built for Fetch — a Put.io client — to parse TV & Movie information from downloaded files. It can be used on any platform that can run Swift as it only relies on Foundation.

It can gather the following from a raw file name:

  • TV or movie title
  • Year of release
  • TV season number
  • TV episode number

Usage

Using Downpour is easy. Just create a new instance and it'll do the rest.

let torrent = Downpour(string: filename)

let title = torrent.title
let year = torrent.year

if downpour.type == .TV {
    let season = torrent.season
    let episode = torrent.episode
}

Installation

Add to your project using the Swift Package Manager by adding the following dependency to your Package.swift:

.package(url: "https://github.com/Ponyboy47/Downpour.git", .upToNextMinor(from: "0.5.0"))

For swift 3 use 0.4.x

Description

  • Swift Tools 4.0.0
View More Packages from this Author

Dependencies

Last updated: Sat Mar 16 2024 01:10:51 GMT-0900 (Hawaii-Aleutian Daylight Time)