Latest 0.2.0
Homepage https://github.com/steve228uk/Downpour
License MIT
Platforms osx 10.10, ios 8.0, tvos 9.0
Authors

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

Latest podspec

{
    "name": "Downpour",
    "version": "0.2.0",
    "summary": "Get TV & Movie info from downloaded filenames",
    "description": "Downpour was built for [Fetch](http://getfetchapp.com) u2014 a Put.io client u2014 to parse TV & Movie information from downloaded files. It can gather the following from a raw file name:nn- TV or movie titlen- Year of releasen- TV season numbern- TV episode number",
    "homepage": "https://github.com/steve228uk/Downpour",
    "license": "MIT",
    "authors": {
        "Stephen Radford": "[email protected]"
    },
    "source": {
        "git": "https://github.com/steve228uk/Downpour.git",
        "tag": "0.2.0"
    },
    "social_media_url": "https://twitter.com/steve228uk",
    "platforms": {
        "osx": "10.10",
        "ios": "8.0",
        "tvos": "9.0"
    },
    "source_files": "Sources/**/*",
    "pushed_with_swift_version": "3.0.1"
}

Pin It on Pinterest

Share This