-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
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,13 +1,14 @@ | ||
{ | ||
"name": "OpenSubtitles", | ||
"identifier": "io.iina.opensub", | ||
"version": "1.0.0", | ||
"description": "Description here", | ||
"version": "0.9.1", | ||
"description": "Official OpenSubtitles plugin for IINA", | ||
"author": { | ||
"name": "IINA Developers", | ||
"email": "[email protected]", | ||
"url": "https://iina.io" | ||
"url": "https://github.com/iina/plugin-opensub" | ||
}, | ||
"ghVersion": 4, | ||
"ghRepo": "iina/plugin-opensub", | ||
"entry": "dist/index.js", | ||
"global": "dist/global.js", | ||
"permissions": ["show-osd", "file-system", "network-request"], | ||
|
@@ -23,6 +24,7 @@ | |
], | ||
"preferencesPage": "pref.html", | ||
"preferenceDefaults": { | ||
"languages": "" | ||
"languages": "", | ||
"save_login": "keychain" | ||
} | ||
} |
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,76 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Document</title> | ||
<style> | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
html { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
body { | ||
padding: 16px; | ||
margin: 0; | ||
font-size: 13px; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, | ||
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; | ||
} | ||
|
||
p { | ||
margin: 0; | ||
} | ||
|
||
small, | ||
.small { | ||
font-size: 11px; | ||
} | ||
|
||
.secondary { | ||
color: rgba(0, 0, 0, 0.5); | ||
} | ||
|
||
.pref-section { | ||
margin-bottom: 12px; | ||
} | ||
|
||
.pref-help { | ||
margin-top: 2px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div class="pref-section"> | ||
Login credentials | ||
<div style="margin-top: 4px; line-height: 24px"> | ||
<div> | ||
<label><input type="radio" name="save_login" value="keychain" data-pref-key /> | ||
Save in the system keychain</label> | ||
</div> | ||
<!--div> | ||
<label><input type="radio" name="save_login" value="plaintext" data-pref-key /> | ||
Video not larger than:</label> | ||
<input type="number" data-pref-key="max_video_height" style="width: 4em" /> | ||
p | ||
</div --> | ||
<div> | ||
<label><input type="radio" name="save_login" value="no" data-pref-key /> | ||
Do not save</label> | ||
</div> | ||
</div> | ||
<p class="small pref-help secondary"> | ||
If you store your login credentials in the system keychain, | ||
you may need to authenticate with your system password when IINA starts. | ||
If you choose not to save your login credentials, | ||
you will need to enter your opensubtitles.com password every time. | ||
</p> | ||
</div> | ||
</body> | ||
|
||
</html> |
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