Skip to content

☔️ Get TV & Movie info from downloaded file names

License

Notifications You must be signed in to change notification settings

tomangistalis/Downpour

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Downpour

license

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 Pod directory to your project or install via Cocoapods.

pod 'Downpour', :git => 'git@github.com:steve228uk/Downpour.git'

About

☔️ Get TV & Movie info from downloaded file names

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 85.8%
  • Ruby 14.2%