Removed generateFullIndex() function
This commit is contained in:
		@@ -24,8 +24,6 @@ function main() {
 | 
			
		||||
  generateLanguageIndex()
 | 
			
		||||
  console.log('Generating index.category.m3u...')
 | 
			
		||||
  generateCategoryIndex()
 | 
			
		||||
  console.log('Generating index.full.m3u...')
 | 
			
		||||
  generateFullIndex()
 | 
			
		||||
  console.log('Generating /countries...')
 | 
			
		||||
  generateCountries()
 | 
			
		||||
  console.log('Generating /categories...')
 | 
			
		||||
@@ -139,19 +137,6 @@ function generateCategoryIndex() {
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function generateFullIndex() {
 | 
			
		||||
  const filename = `${ROOT_DIR}/index.full.m3u`
 | 
			
		||||
  helper.createFile(filename, '#EXTM3U\n')
 | 
			
		||||
 | 
			
		||||
  const channels = helper.sortBy(list.all, ['countryName', 'group', 'title', 'url'])
 | 
			
		||||
  for(let channel of channels) {
 | 
			
		||||
    const group = channel.group
 | 
			
		||||
    channel.group = [ channel.countryName, channel.group ].filter(i => i).join(';')
 | 
			
		||||
    helper.appendToFile(filename, channel.toString())
 | 
			
		||||
    channel.group = group
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function generateCountries() {
 | 
			
		||||
  const outputDir = `${ROOT_DIR}/countries`
 | 
			
		||||
  helper.createDir(outputDir)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user