Downpour

1.0.0

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

What's New

2017-04-20T13:02:29Z

Thanks to @Ponyboy47 for their amazing work here. Upgraded to Swift 3.1 and a massive number of changes to the regex patterns amongst other improvements.

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

Install manually by copying the contents of the Sources directory to your project or install via CocoaPods.

pod 'Downpour'

Note: For Swift 2.3 please use 0.1.0

Description

  • Swift Tools
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Mar 06 2024 18:36:19 GMT-1000 (Hawaii-Aleutian Standard Time)