Explorar el Código

Use date&time as file name for instagram files

Addresses #679
Not sure about this one though, what do you think @ifedapoolarewaju
Artur Paikin hace 7 años
padre
commit
ca0e6a7bb8
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      src/plugins/Instagram/index.js

+ 6 - 1
src/plugins/Instagram/index.js

@@ -37,7 +37,8 @@ module.exports = class Instagram extends Plugin {
 
   install () {
     this.view = new View(this, {
-      viewType: 'grid'
+      viewType: 'grid',
+      showTitles: false
     })
     // Set default state for Instagram
     this.setPluginState({
@@ -98,6 +99,10 @@ module.exports = class Instagram extends Plugin {
   }
 
   getItemName (item) {
+    if (item && item['created_time']) {
+      let date = new Date(item['created_time'] * 1000).toUTCString()
+      return `Instagram ${date}`
+    }
     return ''
   }