package com.yutou.nas.Datas.Jellyfin;

import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.yutou.nas.utils.AppTools;
import lombok.Data;

import java.io.File;
import java.util.List;


@Data
public class EpisodeData {
    private String name;
    private String serverID;
    private String id;
    private String etag;
    private String dateCreated;
    private boolean canDelete;
    private boolean canDownload;
    private String container;
    private String sortName;
    private JSONArray externalUrls;
    private List<MediaSource> mediaSources;
    private String path;
    private boolean enableMediaSourceDisplay;
    private Object channelID;
    private JSONArray taglines;
    private JSONArray genres;
    private long runTimeTicks;
    private String playAccess;
    private long parentIndexNumber;
    private JSONArray remoteTrailers;
    private JSONObject providerIDS;
    private boolean isHD;
    private boolean isFolder;
    private String parentID;
    private String type;
    private List<People> people;
    private List<Studios> studios;
    private JSONArray genreItems;
    private String parentLogoItemID;
    private String parentBackdropItemID;
    private JSONArray parentBackdropImageTags;
    private long localTrailerCount;
    private UserData userData;
    private String seriesName;
    private String seriesID;
    private String seasonID;
    private long specialFeatureCount;
    private String displayPreferencesID;
    private JSONArray tags;
    private double primaryImageAspectRatio;
    private String seriesPrimaryImageTag;
    private String seasonName;
    private List<MediaStream> mediaStreams;
    private String videoType;
    private ImageTags imageTags;
    private JSONArray backdropImageTags;
    private JSONArray screenshotImageTags;
    private String parentLogoImageTag;
    private ImageBlurHashes imageBlurHashes;
    private String seriesStudio;
    private List<Chapter> chapters;
    private String locationType;
    private String mediaType;
    private JSONArray lockedFields;
    private boolean lockData;
    private long width;
    private long height;

    public String getPath() {
        if (AppTools.isRuntimeSystemOfWindow()) {
            if (path != null) {
                path = path.replace("/media/yutou/disk_lvm/public/download/anim/", "Z:\\download\\anim\\").replace("/", File.separator);
            }
        }
        return path;
    }
}
