mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-01 23:47:50 +08:00
chore: improve ui & fix
This commit is contained in:
@@ -34,7 +34,7 @@ func (s *Server) writePlexmatch(seriesId int, episodeId int, targetDir, name str
|
|||||||
//create new
|
//create new
|
||||||
log.Warnf(".plexmatch file not found, create new one: %s", series.NameEn)
|
log.Warnf(".plexmatch file not found, create new one: %s", series.NameEn)
|
||||||
if err := st.WriteFile(filepath.Join(series.TargetDir, ".plexmatch"),
|
if err := st.WriteFile(filepath.Join(series.TargetDir, ".plexmatch"),
|
||||||
[]byte(fmt.Sprintf("tmdbid: %d\nimdbid:%s\n",series.TmdbID, series.ImdbID))); err != nil {
|
[]byte(fmt.Sprintf("tmdbid: %d\n",series.TmdbID))); err != nil {
|
||||||
return errors.Wrap(err, "series plexmatch")
|
return errors.Wrap(err, "series plexmatch")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,7 +124,6 @@ func (s *Server) AddTv2Watchlist(c *gin.Context) (interface{}, error) {
|
|||||||
StorageID: in.StorageID,
|
StorageID: in.StorageID,
|
||||||
TargetDir: in.Folder,
|
TargetDir: in.Folder,
|
||||||
DownloadHistoryEpisodes: in.DownloadHistoryEpisodes,
|
DownloadHistoryEpisodes: in.DownloadHistoryEpisodes,
|
||||||
ImdbID: detail.IMDbID,
|
|
||||||
}, epIds)
|
}, epIds)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "add to list")
|
return nil, errors.Wrap(err, "add to list")
|
||||||
@@ -190,7 +189,6 @@ func (s *Server) AddMovie2Watchlist(c *gin.Context) (interface{}, error) {
|
|||||||
Resolution: media.Resolution(in.Resolution),
|
Resolution: media.Resolution(in.Resolution),
|
||||||
StorageID: in.StorageID,
|
StorageID: in.StorageID,
|
||||||
TargetDir: in.Folder,
|
TargetDir: in.Folder,
|
||||||
ImdbID: detail.IMDbID,
|
|
||||||
}, []int{epid})
|
}, []int{epid})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "add to list")
|
return nil, errors.Wrap(err, "add to list")
|
||||||
|
|||||||
@@ -42,8 +42,9 @@ class WelcomePage extends ConsumerWidget {
|
|||||||
: List.generate(value.length, (i) {
|
: List.generate(value.length, (i) {
|
||||||
final item = value[i];
|
final item = value[i];
|
||||||
return Card(
|
return Card(
|
||||||
margin: const EdgeInsets.all(4),
|
//margin: const EdgeInsets.all(4),
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
|
elevation: 5,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
//splashColor: Colors.blue.withAlpha(30),
|
//splashColor: Colors.blue.withAlpha(30),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -58,9 +59,9 @@ class WelcomePage extends ConsumerWidget {
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
width: 140,
|
width: 140,
|
||||||
height: 210,
|
height: 210,
|
||||||
child: Image.network(
|
child: Ink.image(image: NetworkImage(
|
||||||
"${APIs.imagesUrl}/${item.id}/poster.jpg",
|
"${APIs.imagesUrl}/${item.id}/poster.jpg",
|
||||||
fit: BoxFit.fill),
|
)) ,
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 140,
|
width: 140,
|
||||||
|
|||||||
Reference in New Issue
Block a user