mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-05 18:40:01 -06:00
just curious
This commit is contained in:
6
.github/workflows/build-android.yml
vendored
6
.github/workflows/build-android.yml
vendored
@@ -1,8 +1,6 @@
|
||||
name: build-android
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- "main"
|
||||
on:
|
||||
pull_request:
|
||||
jobs:
|
||||
build-android:
|
||||
runs-on: macos-latest
|
||||
|
||||
5
.github/workflows/build-ios.yml
vendored
5
.github/workflows/build-ios.yml
vendored
@@ -1,8 +1,7 @@
|
||||
name: build-ios
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- "main"
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build-ios:
|
||||
runs-on: macos-latest
|
||||
|
||||
@@ -1,13 +1,6 @@
|
||||
import { backgroundRuntime } from "@/App";
|
||||
import { runOnRuntime } from "react-native-reanimated";
|
||||
|
||||
/**
|
||||
* Converts the run time seconds of a track to the RunTimeTicks standard set by Emby / Jellyfin
|
||||
* @param seconds The run time seconds of the item to convert to Jellyfin ticks
|
||||
* @returns the run time seconds of a track converted to Jellyfin runtimeticks
|
||||
*
|
||||
* @see https://emby.media/community/index.php?/topic/63357-runtimeticks-microseconds-milliseconds-or-nanoseconds/
|
||||
*/
|
||||
export function convertSecondsToRunTimeTicks(seconds: number) {
|
||||
return runOnRuntime(backgroundRuntime, (runTimeSeconds: number) => {
|
||||
const runTimeMilliseconds = seconds * 1000 * 10000;
|
||||
@@ -16,13 +9,6 @@ export function convertSecondsToRunTimeTicks(seconds: number) {
|
||||
})(seconds);
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a {@link BaseItemDto}'s RunTimeTicks to seconds
|
||||
* @param ticks The run time ticks of the item to convert to seconds
|
||||
* @returns The run time ticks of a track converted to seconds
|
||||
*
|
||||
* @see https://emby.media/community/index.php?/topic/63357-runtimeticks-microseconds-milliseconds-or-nanoseconds/
|
||||
*/
|
||||
export function convertRunTimeTicksToSeconds(ticks: number) {
|
||||
return runOnRuntime(backgroundRuntime, (runTimeTicks : number) => {
|
||||
const runTimeMilliseconds = runTimeTicks / 10000;
|
||||
|
||||
12
package-lock.json
generated
12
package-lock.json
generated
@@ -11,7 +11,6 @@
|
||||
"@jellyfin/sdk": "^0.11.0",
|
||||
"@react-native-community/blur": "^4.4.1",
|
||||
"@react-native-community/cli": "^15.1.3",
|
||||
"@react-native-community/masked-view": "^0.1.11",
|
||||
"@react-native-masked-view/masked-view": "^0.3.1",
|
||||
"@react-navigation/bottom-tabs": "^7.2.0",
|
||||
"@react-navigation/native": "^7.0.14",
|
||||
@@ -3404,17 +3403,6 @@
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/@react-native-community/masked-view": {
|
||||
"version": "0.1.11",
|
||||
"resolved": "https://registry.npmjs.org/@react-native-community/masked-view/-/masked-view-0.1.11.tgz",
|
||||
"integrity": "sha512-rQfMIGSR/1r/SyN87+VD8xHHzDYeHaJq6elOSCAD+0iLagXkSI2pfA0LmSXP21uw5i3em7GkkRjfJ8wpqWXZNw==",
|
||||
"deprecated": "Repository was moved to @react-native-masked-view/masked-view",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"react": ">=16.0",
|
||||
"react-native": ">=0.57"
|
||||
}
|
||||
},
|
||||
"node_modules/@react-native-masked-view/masked-view": {
|
||||
"version": "0.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@react-native-masked-view/masked-view/-/masked-view-0.3.1.tgz",
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"@jellyfin/sdk": "^0.11.0",
|
||||
"@react-native-community/blur": "^4.4.1",
|
||||
"@react-native-community/cli": "^15.1.3",
|
||||
"@react-native-community/masked-view": "^0.1.11",
|
||||
"@react-native-masked-view/masked-view": "^0.3.1",
|
||||
"@react-navigation/bottom-tabs": "^7.2.0",
|
||||
"@react-navigation/native": "^7.0.14",
|
||||
|
||||
Reference in New Issue
Block a user