Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageapplescript
 private static func scanForDRM(in container: Container) -> DRM? {  
  /// LCP.
  // Check if a LCP license file is present in the container.
  if ((try? container.data(relativePath: EPUBConstant.lcplFilePath)) != nil) {
     return DRM(brand: .lcp)
   }
   return DRM(brand: .adobe)
   // return nil
  }

    private static func scanForDRM(in container: Container) -> DRM? {

        /// LCP.

        // Check if a LCP license file is present in the container.

         if ((try? container.data(relativePath: EPUBConstant.lcplFilePath)) != nil) {

             return DRM(brand: .lcp)

         }

         return DRM(brand: .adobe)

         // return nil

     }


Commit:

https://github.com/NYPL-Simplified/r2-streamer-swift/commit/9a53944a6bac0280eb4902155647c1e5bf0e5a9e

...