Skip to content

Swift 3 code for generating file hash compatible with opensubtitles.org's API

License

Notifications You must be signed in to change notification settings

niklasberglund/OpenSubtitlesHash.swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

OpenSubtitlesHash.swift

Swift 3 code for generating file hash compatible with opensubtitles.org's API. More information about the OpenSubtitles API at http://trac.opensubtitles.org/projects/opensubtitles.

Usage example

let videoUrl = Bundle.main.url(forResource: "dummy5", withExtension: "rar")
let videoHash = OpenSubtitlesHash.hashFor(videoUrl!)
debugPrint("File hash: \(videoHash.fileHash)\nFile size: \(videoHash.fileSize)")

Installation

Manual installation by including OpenSubtitlesHash.swift in project.

About

Swift 3 code for generating file hash compatible with opensubtitles.org's API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages