-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed some misspellings, minor refactoring, added README and a screen…
…shot
- Loading branch information
Showing
18 changed files
with
118 additions
and
101 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace OpenSubSearchLib | ||
{ | ||
public interface ISubService | ||
{ | ||
IList<Subtitle> searchSubtitlesFromFile(string languages, string filePath); | ||
IList<Subtitle> searchSubtitlesFromQuery(string languages, string query, int? season = null, int? episode = null); | ||
|
||
IList<Language> getAvailableLanguages(); | ||
|
||
string serviceId(); | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using OSDBnet; | ||
|
||
namespace OpenSubSearchLib | ||
{ | ||
public class Subtitle | ||
{ | ||
public string id { get; set; } | ||
public string hash { get; set; } | ||
public string fileName { get; set; } | ||
public string moveId { get; set; } | ||
public string imdbId { get; set; } | ||
public string title { get; set; } | ||
public string originalTitle { get; set; } | ||
public int year { get; set; } | ||
public string languageId { get; set; } | ||
public string languageName { get; set; } | ||
public string rating { get; set; } | ||
public string bad { get; set; } | ||
public Uri downloadLink { get; set; } | ||
public Uri pageLink { get; set; } | ||
} | ||
|
||
public class Language | ||
{ | ||
public String id_iso639; | ||
public String service_id; | ||
public String name; | ||
|
||
public override string ToString() | ||
{ | ||
return name; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace OpenSubSearchLib | ||
{ | ||
public class SubServiceFactory | ||
{ | ||
private Dictionary<String, ISubService> svcMap; | ||
|
||
public SubServiceFactory() | ||
{ | ||
svcMap = new Dictionary<string, ISubService>(); | ||
OSDBService svc = new OSDBService(); | ||
svcMap[svc.serviceId()] = svc; | ||
} | ||
|
||
public ISubService getService(string id) | ||
{ | ||
return svcMap[id]; | ||
} | ||
|
||
public List<String> getServiceIds() | ||
{ | ||
return svcMap.Keys.ToList(); | ||
} | ||
|
||
public ISubService getFirstService() | ||
{ | ||
return svcMap.Values.ToList()[0]; | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
# open-sub-search | ||
# Open Sub Search | ||
|
||
Open Sub Search is a little side project I did in a few days as part of a project related to a course at my university and I though I might as well something I would use on a somewhat regular basis. | ||
|
||
### What it does: | ||
- Parses metadata from a given filename, extracting relevant information such as season, episode release group and so on. | ||
- Searches through a subtitle provider based on given parameters or a file hash | ||
- Provides quick downloading of a chosen subtitle | ||
- Currently only supports OpenSubtitles.com but I hope to add more services in the future. | ||
|
||
### Installation | ||
Just grab a binary release from the [Releases page](https://github.com/iboshkov/open-sub-search/releases) | ||
|
||
|
||
### How to use: | ||
- Drag and drop a file into the application window, or use the "Open File" button to select a file to use as reference. | ||
- Press either **"Search by Name"** or **"Search by Hash"**. | ||
- Select a subtitle and press **"Download Subtitle"** | ||
|
||
### Screenshots | ||
 | ||
|
||
### License | ||
MIT (Check LICENSE for more info) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.