mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-06 15:10:49 +08:00
chore: updates
This commit is contained in:
@@ -225,6 +225,9 @@ func (s *Server) SearchAvailableMovies(c *gin.Context) (interface{}, error) {
|
||||
if !strings.Contains(r.Name, strconv.Itoa(year)) && !strings.Contains(r.Name, strconv.Itoa(year+1)) && !strings.Contains(r.Name, strconv.Itoa(year-1)) {
|
||||
continue //not the same movie, if year is not correct
|
||||
}
|
||||
if !strings.Contains(r.Name, movieDetail.NameCn) && !strings.Contains(r.Name, movieDetail.NameEn) {
|
||||
continue //name not match
|
||||
}
|
||||
searchResults = append(searchResults, TorznabSearchResult{
|
||||
Name: r.Name,
|
||||
Size: r.Size,
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'package:ui/utils.dart';
|
||||
import 'package:ui/widgets/progress_indicator.dart';
|
||||
|
||||
class MovieWatchlistPage extends ConsumerWidget {
|
||||
static const route = "/movie";
|
||||
static const route = "/movies";
|
||||
|
||||
const MovieWatchlistPage({super.key});
|
||||
|
||||
|
||||
@@ -57,16 +57,23 @@ class _SearchPageState extends ConsumerState<SearchPage> {
|
||||
Row(
|
||||
children: [
|
||||
Text(
|
||||
"${item.name} (${item.firstAirDate?.year})",
|
||||
"${item.name} ${item.name != item.originalName ? item.originalName : ''} (${item.firstAirDate?.year})",
|
||||
style: const TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.bold),
|
||||
),
|
||||
const SizedBox(width: 10,),
|
||||
item.mediaType == "tv" ? const Icon(Icons.live_tv): const Icon(Icons.movie)
|
||||
const SizedBox(
|
||||
width: 10,
|
||||
),
|
||||
item.mediaType == "tv"
|
||||
? const Icon(Icons.live_tv)
|
||||
: const Icon(Icons.movie)
|
||||
],
|
||||
),
|
||||
const Text(""),
|
||||
item.originCountry.isNotEmpty
|
||||
? Text("国家:${item.originCountry[0]}")
|
||||
: Container(),
|
||||
Text("${item.overview}")
|
||||
],
|
||||
),
|
||||
|
||||
@@ -131,7 +131,7 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
||||
Flexible(
|
||||
flex: 1,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(10),
|
||||
padding: const EdgeInsets.all(10),
|
||||
child: Image.network(
|
||||
"${APIs.imagesUrl}/${details.id}/poster.jpg",
|
||||
fit: BoxFit.contain,
|
||||
@@ -139,14 +139,13 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
Flexible(
|
||||
flex: 6,
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment:
|
||||
CrossAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
@@ -173,7 +172,7 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
||||
),
|
||||
const Divider(thickness: 1, height: 1),
|
||||
Text(
|
||||
"${details.name} (${details.airDate!.split("-")[0]})",
|
||||
"${details.name} ${details.name != details.originalName ? details.originalName: ''} (${details.airDate!.split("-")[0]})",
|
||||
style: const TextStyle(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold),
|
||||
|
||||
Reference in New Issue
Block a user