mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Merge branch 'media-attachments' of github.com:Unhelpful/jellyfin into media-attachments
This commit is contained in:
		
						commit
						cc7741efd4
					
				@ -6180,7 +6180,8 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
 | 
			
		||||
                    statement.TryBind("@AttachmentIndex", query.Index.Value);
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                foreach (var row in statement.ExecuteQuery()) {
 | 
			
		||||
                foreach (var row in statement.ExecuteQuery())
 | 
			
		||||
                {
 | 
			
		||||
                    list.Add(GetMediaAttachment(row));
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
@ -6230,7 +6231,7 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
 | 
			
		||||
                {
 | 
			
		||||
                    if (i != startIndex)
 | 
			
		||||
                    {
 | 
			
		||||
                        insertText.Append(",");
 | 
			
		||||
                        insertText.Append(',');
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    var index = i.ToString(CultureInfo.InvariantCulture);
 | 
			
		||||
 | 
			
		||||
@ -527,7 +527,9 @@ namespace MediaBrowser.Api.Playback
 | 
			
		||||
 | 
			
		||||
            foreach (var attachment in mediaSource.MediaAttachments)
 | 
			
		||||
            {
 | 
			
		||||
                attachment.DeliveryUrl = string.Format("/Videos/{0}/{1}/Attachments/{2}",
 | 
			
		||||
                attachment.DeliveryUrl = string.Format(
 | 
			
		||||
                    CultureInfo.InvariantCulture,
 | 
			
		||||
                    "/Videos/{0}/{1}/Attachments/{2}",
 | 
			
		||||
                    item.Id,
 | 
			
		||||
                    mediaSource.Id,
 | 
			
		||||
                    attachment.Index);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user