just curious

This commit is contained in:
Violet Caulfield
2025-02-09 18:28:58 -06:00
parent facdd35538
commit 1848c56245
5 changed files with 4 additions and 34 deletions

View File

@@ -1,8 +1,6 @@
name: build-android
on:
push:
branches-ignore:
- "main"
on:
pull_request:
jobs:
build-android:
runs-on: macos-latest

View File

@@ -1,8 +1,7 @@
name: build-ios
on:
push:
branches-ignore:
- "main"
pull_request:
jobs:
build-ios:
runs-on: macos-latest

View File

@@ -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
View File

@@ -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",

View File

@@ -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",