Skip to content

Commit 7717df4

Browse files
committed
feats: Compatible with emby api
1 parent 8985ca4 commit 7717df4

File tree

31 files changed

+40
-42
lines changed

31 files changed

+40
-42
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
- images/*
1515
- CHANGELOG.md
1616
- README.md
17-
branches: [ dev ]
17+
branches: [ emby ]
1818
pull_request:
1919
paths-ignore:
2020
- scripts/**

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ elseif (PLATFORM_SWITCH)
266266
gen_dksh("${PROJECT_RESOURCES}/shaders")
267267
endif ()
268268
add_custom_target(${PROJECT_NAME}.nro DEPENDS ${PROJECT_NAME}
269-
COMMAND ${NX_NACPTOOL_EXE} --create "${PROJECT_NAME}" "${PROJECT_AUTHOR}" "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_ALTER}" ${PROJECT_NAME}.nacp
269+
COMMAND ${NX_NACPTOOL_EXE} --create "Emby" "${PROJECT_AUTHOR}" "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_ALTER}" ${PROJECT_NAME}.nacp
270270
COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_RESOURCES} ${CMAKE_BINARY_DIR}/resources
271271
COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/resources/font/keymap*.ttf ${CMAKE_BINARY_DIR}/resources/font/*_fallback.ttf ${CMAKE_BINARY_DIR}/resources/font/switch_font.ttf
272272
COMMAND ${NX_ELF2NRO_EXE} ${PROJECT_NAME}.elf ${PROJECT_NAME}.nro --icon=${PROJECT_ICON} --nacp=${PROJECT_NAME}.nacp --romfsdir=${CMAKE_BINARY_DIR}/resources

app/include/api/jellyfin.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,17 @@ inline void deleteJSON(const std::function<void(Result)>& then, OnError error, s
7373
template <typename T>
7474
struct Result {
7575
std::vector<T> Items;
76-
long TotalRecordCount = 0;
77-
long StartIndex = 0;
76+
size_t TotalRecordCount = 0;
7877
};
7978

8079
template <typename T>
8180
inline void to_json(nlohmann::json& nlohmann_json_j, const Result<T>& nlohmann_json_t) {
82-
NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, Items, TotalRecordCount, StartIndex))
81+
NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, Items, TotalRecordCount))
8382
}
8483

8584
template <typename T>
8685
inline void from_json(const nlohmann::json& nlohmann_json_j, Result<T>& nlohmann_json_t) {
87-
NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, Items, TotalRecordCount, StartIndex))
86+
NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, Items, TotalRecordCount))
8887
}
8988

9089
}; // namespace jellyfin
-1.37 KB
Loading
-1.12 KB
Loading
-2.29 KB
Loading
-7.4 KB
Loading
-6.46 KB
Loading

app/platform/ps4/sce_sys/icon0.png

-855 Bytes
Loading

app/platform/ps4/sce_sys/pic0.png

359 KB
Loading

0 commit comments

Comments
 (0)