-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from mdaubie/master
Release after v0.1.1
- Loading branch information
Showing
8 changed files
with
185 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Publish | ||
|
||
on: | ||
workflow_dispatch: # Trigger manually | ||
push: | ||
branches: | ||
- publish | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Java for publishing to Maven Central Repository | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
server-id: ossrh | ||
cache: 'maven' | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE | ||
- name: Publish to the Maven Central Repository | ||
id: publish-to-central | ||
run: mvn --batch-mode deploy -P release | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |
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,4 +1,4 @@ | ||
name: Run all tests | ||
name: Checks | ||
|
||
on: | ||
workflow_dispatch: # Trigger manually | ||
|
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,4 +1,26 @@ | ||
# Subtitles Parser | ||
|
||
[![version](https://img.shields.io/github/v/release/mdaubie/subtitles-parser?display_name=tag)](https://github.com/mdaubie/subtitles-parser/releases/latest) | ||
[![release status](https://github.com/mdaubie/subtitles-parser/actions/workflows/release.yml/badge.svg)](https://github.com/mdaubie/subtitles-parser/actions/workflows/release.yml) | ||
[![checks status](https://github.com/mdaubie/subtitles-parser/actions/workflows/test-all.yml/badge.svg)](https://github.com/mdaubie/subtitles-parser/actions/workflows/test-all.yml) | ||
[![publish status](https://github.com/mdaubie/subtitles-parser/actions/workflows/publish.yml/badge.svg)](https://github.com/mdaubie/subtitles-parser/actions/workflows/publish.yml) | ||
[![license](https://img.shields.io/github/license/mdaubie/subtitles-parser)](https://github.com/mdaubie/subtitles-parser/blob/master/LICENSE) | ||
|
||
Library for parsing subtitles files using regexes | ||
|
||
Includes a toolbox to perform classic subtitles operations | ||
### Handled formats | ||
|
||
- Currently: SubRip | ||
- Upcoming: MicroDVD, WebVTT, SSA, ASS | ||
|
||
### Related projects | ||
|
||
I am working on a web app project to handle my collection of downloaded movies and series, you can find it | ||
here: [The Movie Shelf](https://github.com/mdaubie/movie-shelf) | ||
|
||
This is a personal project for my needs, so it probably won't be interesting for you (I might actually keep it private), | ||
but I need to develop some libraries for this main project which might be useful to you: | ||
|
||
- [MKV Toolbox](https://github.com/mdaubie/mkv-toolbox) | ||
- [Torrent Name Parser](https://github.com/mdaubie/torrent-name-parser) | ||
- [Color of Film](https://github.com/mdaubie/color-of-film) |
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
8 changes: 8 additions & 0 deletions
8
src/main/java/io/github/mdaubie/subtitlesparser/constants/SUB_FILE_FORMATS.java
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,8 @@ | ||
package io.github.mdaubie.subtitlesparser.constants; | ||
|
||
import io.github.mdaubie.subtitlesparser.model.Format; | ||
import io.github.mdaubie.subtitlesparser.model.SubRipFile; | ||
|
||
public final class SUB_FILE_FORMATS { | ||
public static final Format<SubRipFile> SUB_RIP_FORMAT = new Format<>("SubRip", "srt", SubRipFile.class, TIMESTAMP_FORMATS.ISO_8601_COMA.value); | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/io/github/mdaubie/subtitlesparser/constants/TIMESTAMP_FORMATS.java
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,15 @@ | ||
package io.github.mdaubie.subtitlesparser.constants; | ||
|
||
import java.time.format.DateTimeFormatter; | ||
|
||
public enum TIMESTAMP_FORMATS { | ||
ISO_8601_COMA(DateTimeFormatter.ofPattern("HH:mm:ss,SSS")), | ||
ISO_8601_DOT(DateTimeFormatter.ofPattern("HH:mm:ss.SSS")), | ||
; | ||
|
||
public final DateTimeFormatter value; | ||
|
||
TIMESTAMP_FORMATS(DateTimeFormatter value) { | ||
this.value = value; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/io/github/mdaubie/subtitlesparser/model/Format.java
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