Пример #1
0
 public String buildFileName() {
   return DuckUtil.removeInvalidWindowsPathCharacters(
       DuckUtil.addLeadingZeros(index, 2)
           + " - "
           + artist
           + " - "
           + album
           + " - "
           + title
           + getExtension());
 }
Пример #2
0
 public Track(
     int index,
     String title,
     String artist,
     String album,
     long duration,
     String key,
     String sectionUuid,
     String playlistItemId,
     String localLink,
     long size,
     String plexId,
     String container) {
   this.index = index;
   this.title = title;
   this.artist = artist;
   this.album = album;
   this.duration = duration;
   durationString = DuckUtil.toDurationString(duration);
   plexHref = key;
   this.sectionUuid = sectionUuid;
   this.playlistItemId = playlistItemId;
   this.localLink = localLink;
   this.size = size;
   this.plexId = plexId;
   this.container = container;
 }