mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
handle empty artists
This commit is contained in:
parent
5f45adbf56
commit
db61c30557
1 changed files with 10 additions and 2 deletions
|
@ -808,7 +808,11 @@
|
|||
|
||||
function getAlbumArtists(form) {
|
||||
|
||||
return $('#txtAlbumArtist', form).val().split(';').map(function (a) {
|
||||
return $('#txtAlbumArtist', form).val().trim().split(';').filter(function(s){
|
||||
|
||||
return s.length > 0;
|
||||
|
||||
}).map(function (a) {
|
||||
|
||||
return {
|
||||
Name: a
|
||||
|
@ -818,7 +822,11 @@
|
|||
|
||||
function getArtists(form) {
|
||||
|
||||
return $('#txtArtist', form).val().split(';').map(function (a) {
|
||||
return $('#txtArtist', form).val().trim().split(';').filter(function(s){
|
||||
|
||||
return s.length > 0;
|
||||
|
||||
}).map(function (a) {
|
||||
|
||||
return {
|
||||
Name: a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue